How to fitch the result from Yii active recorde query with relations and scopes -
this code
$vacanciesobjects = vacancies::model()->status('approved')->visibility('visible')->removed(0)->archived(0)->findall( array( 'with'=>array( 'job'=>array( //'select' => 'title', 'scopes'=>array( 'offline' => array(0), ), 'with' => array( 'employer'=>array( 'scopes'=>array( 'status_id_not_in' => array('blocked'), ), ), ), ), ), 'limit'=> 5, 'condition' => 'number_of_views > 0', 'order' => 'number_of_views desc', ) );
i can values columns in table vacancies not other table, regarding ?
sorry i'm newbie on yii
i figure out problem this
$vacanciesobject->job['title']
Comments
Post a Comment