I have 2 tables
student_job_log->id,job_id,student_id,created_dt
student_info->id,user_id,first_name,last_name
I have made the relations in model(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')),
);
}
I got the error in this what is the problem. something is wrong in my relations that i dont know :(
I want the first_name and last_name from student_info plz help me...:(