2012-05-01 6 views
0

私はzend datbaseテーブルライブラリに問題があります。Zend select issue

申し訳ありませんが、私は前の問題を修正しますが、ここでは機能で

Message: Method "fetchAll" does not exist and was not trapped in __call()

を別の1つを得てしまったが、私が代わりに$この

//setIntegrityCheck to false to allow joins 
     $roomModel = new self(); 

     $select = $roomModel->select(Zend_Db_Table::SELECT_WITH_FROM_PART) 
       ->setIntegrityCheck(FALSE); 

     //performs join aliasing table room_type to t 
     $select->join(array('t' => 'room_types'), 't.room_type_id = room.room_type_id AND num_beds> '.$number_beds); 
     ////performs join aliasing table room_status to s 
     $select->join(array('s' => 'room_statuses'), 's.room_status_id = room.room_status_id'); 

     $select->join(array('chin' => 'checkin'), 'chin.checkin_date IS NOT BETWEEN `'.$checkin.'` AND `'.$checkout.'`'); 

     $select->join(array('chout' => 'checkout'), 'chout.checkout_date IS NOT BETWEEN `'.$checkin.'` AND `'.$checkout.'`'); 

     $result = $this->fetchAll($select); 

     return $result; 
+3

あなたの例では '$ this'とは何ですか? –

答えて

2

トライ$のroomModelを使用していますスクリプトです