public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
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('patient_id', $this->patient_id, true);
$criteria->compare('risk_id', $this->allergy_id, true);
return new CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}