public function search($consultsales, $consult) {
$criteria = new CDbCriteria ();
$criteria->with = array (
'consult' => array (
'select' => 'consult.columnA,consult.columnB,consult.columnC'
)
);
$criteria->select = array('customerid','id');
$dataProvider = new CActiveDataProvider ( get_class ( $this ), array (
'criteria' => $criteria
) );
return $dataProvider;
}
在$dataProvider->getData()中怎么读取到所查询的这些列columnA,columnB,columnC,customerid,id