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('event_id', $this->event_id, true);
$criteria->compare('left_eyedraw', $this->left_eyedraw);
$criteria->compare('left_pupil_id', $this->left_pupil_id);
$criteria->compare('left_nuclear_id', $this->left_nuclear_id);
$criteria->compare('left_cortical_id', $this->left_cortical_id);
$criteria->compare('left_pxe', $this->left_pxe);
$criteria->compare('left_phako', $this->left_phako);
$criteria->compare('left_description', $this->left_description);
$criteria->compare('right_eyedraw', $this->right_eyedraw);
$criteria->compare('right_pupil_id', $this->right_pupil_id);
$criteria->compare('right_nuclear_id', $this->right_nuclear_id);
$criteria->compare('right_cortical_id', $this->right_cortical_id);
$criteria->compare('right_pxe', $this->right_pxe);
$criteria->compare('right_phako', $this->right_phako);
$criteria->compare('right_description', $this->right_description);
return new \CActiveDataProvider(get_class($this), array('criteria' => $criteria));
}