I have the following:
'supplier' => array(self::HAS_ONE, 'Supplier', 'user_id'),
In my view I want to get the current User plus supplier.id. I do the following:
<?php $user = User::model()->findByPk(Yii::app()->user->id, array('with'=>'supplier', 'select'=>'t.*, supplier.id')); ?>
But this still fetches all columns from supplier model.