0
从下面的方法中收到此错误?Zend_Db_Table_Select_Exception
2013-10-02T14:20:05+01:00 ERR (3): exception 'Zend_Db_Table_Select_Exception' with message 'Select query cannot join with another table' in /usr/share/php/Zend/Db/Table/Select.php:215
class Application_Model_DbTable_Provenir extends Zend_Db_Table_Abstract {
protected $_name = 'provenir_instance_response';
protected $_primary = 'provenir_response_id';
protected $_sequence = true;
/**
* Get passed result and check ID
* @param string $memId
* @return Zend_Db_Table
*/
public function scoreCardQuery($memId){
//Build Query
$select = $this->select();
$select->from('scorecard_results', array('passed', 'check_id'));
$select->where('traveller_id=?', $memId);
return $this->fetchAll($select);
}
}
连接没有了呢? :S
难道是因为我引用provenir_instance_response
作为类参数中的数据库表,但我试图从scorecard_results
中选择?