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, true);
$criteria->compare('name', $this->name, true);
$criteria->compare('long_name', $this->long_name, true);
return new CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}