public function search()
{
$criteria = new CDbCriteria();
$criteria->compare('id', $this->id, true);
$criteria->compare('event_id', $this->event_id, true);
$criteria->compare('is_patient', $this->is_patient);
$criteria->compare('signature_date', $this->signature_date);
$criteria->compare('representative_name', $this->representative_name);
$criteria->compare('signature_file_id', $this->signature_file_id);
return new CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}