我有 2 个表
student_job_log ->id,job_id,student_id,created_dt
student_info ->id,user_id,first_name,last_name
我已经在模型中建立了关系(studentJobLog)
public function relations()
{
// NOTE: you may need to adjust the relation name and the related
// class name for the relations automatically generated below.
return array(
'student_info'=>array(self::BELONGS_TO,'StudentInfo','id','joinType'=>'LEFT JOIN',
'select'=>'first_name, last_name')),
);
}
我得到了这个错误是什么问题。我的关系出了点问题,我不知道 :(
我想要学生信息中的名字和姓氏,请帮助我...... :(