I am new in YII1. I have three tables: Jd, jda and user. Relation with jd and jda is
'jobDescription'=> array(self::HAS_MANY, 'JobDescriptionAssignment', /*array('id'=>'job_desc_id')*/'id'),
and the relation between jda and user is
'users' => array(self::BELONGS_TO, 'User', 'user_id'),
My tables are :
jd->id,name
jda->id,jd_id,user_id
user->id,supervisor_id
supervisor_id comes from user table id. Now I want to show data from jd model those user whose supervisor_id is logged in id.
see this topic Yii Framework : Join table (or other SQL) in data provider?
-