Hi Friends,
When selecting a few columns from the the particular table YII returns all the column name and values too.But for non selected columns comes as null values.
$usercriteria = new CDbCriteria();
$usercriteria->select=="name,dob,place"
$usercriteria->condition="user_id=1";
$usersendemailmodel=TblUser::model()->findAll($usercriteria);
It returns the result,but it returns all columuns.For example I dont need the nativeplace,speakinglanguage from that table.But it returns that columns also.Name,dob,place contains the value.But the nativeplace,speakinglanguage columns comes with the null value.
I want to avoid again checking for the columns.If the result is comes with the expected columns I can push it into the array and I can use it in the front end.
Is I am doing anything wrong here or Is there any other way to avoid it.
P.S
I am using Yii Framework [color="#808080"][font="Verdana"][size="2"]1.0.7[/size][/font][/color]