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('drug_set_id', $this->drug_set_id, true);
$criteria->compare('drug_id', $this->drug_id, true);
$criteria->compare('dose', $this->dose, true);
$criteria->compare('frequency_id', $this->frequency_id, true);
$criteria->compare('duration_id', $this->duration_id, true);
return new CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}