这是我的代码
$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',
)
);
我可以获取表空缺中列的值,但不能从其他表中获取任何帮助吗?
抱歉,我是Yii的新手答案 0 :(得分:0)
我通过这个找出了这个问题
$vacanciesObject->job['title']