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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -