从以下方法收到此错误?
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
在 class 参数中引用为 DB 表,但我正在尝试 select fromscorecard_results
吗?