public function search()
{
// Warning: Please modify the following code to remove attributes that
// should not be searched.
$criteria = new CDbCriteria();
$criteria->compare('id', $this->id);
$criteria->compare('obj_prof', $this->obj_prof, true);
$criteria->compare('nat_id', $this->nat_id, true);
return new CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}