Hello All
As par yii system we can retrieve all records using FindAll() but If retrieve all records if table having fk. and based fk. than follow below
ModelClass::model()->findAll(‘fk_id=:id’,array(’:id’=>$id));
Thanks
Hello All
As par yii system we can retrieve all records using FindAll() but If retrieve all records if table having fk. and based fk. than follow below
ModelClass::model()->findAll(‘fk_id=:id’,array(’:id’=>$id));
Thanks
Please pay attention on where you make your post… you did post in the "job opportuniti" section !
NOTE: Moved to proper section