我有这个发现语句写在cakePhp:
$this->find('all', array(
'conditions' => array('EvaluationMixeval.grp_event_id' => $grpEventId, 'EvaluationMixeval.evaluatee' => $evaluatee),
'fields' => array('EvaluationMixevalDetail.*'),
'joins' => array(
array(
'tabel' => 'evaluation_mixeval_details',
'alias' => 'EvaluationMixevalDetail',
'type' => 'LEFT',
'conditions' => array('EvaluationMixeval.id = EvaluationMixevalDetail.evaluation_mixeval_id')
)
)
));
但每次我执行它时,都会收到此SQL错误:
SQL Error: 1146: Table 'IpeerTest.join_table' doesn't exist
有谁知道发生了什么事?
答案 0 :(得分:4)
检查连接数组中“ tabel ”的拼写错误。