I am new in Yii.
I have defined relations in a model class . How can I return some specific fields of the join in CActiveDataProvider ?
I am new in Yii.
I have defined relations in a model class . How can I return some specific fields of the join in CActiveDataProvider ?
Use $criteria and take a look here how to fetch only the columns you need:
http://www.yiiframework.com/doc/guide/1.1/en/database.ar#reading-record