I have 3 related tables (with their models)
Table1 -> model1
Table2 -> model2 (relation name = table1 on table1_fk foreign key field)
id, family, table1_fk
Table3 -> model3 (relation name = table2 on table2_fk foreign key field)
id, number, table2_fk
Now in my view.php from my table3 CRUD I have this dataprovider
$dataProvider=new CActiveDataProvider('model3', array('criteria'=>array('condition'=> <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />, ),));
? ? ? -> I want to have records in model3 where their related name in model1 are "Ali" what is the proper criteria for this reason?
should I use "with" ? what is the clue?