protected function beforeValidate()
 {
     return parent::beforeValidate();
 }
 /**
  * clear out sided fields to prevent validation of irrelevant data.
  *
  * (non-PHPdoc)
  *
  * @see CModel::beforeValidate()
  */
 protected function beforeValidate()
 {
     // Need to clear any "sided" fields if that side isn't active to prevent
     if ($this->eye->name != 'Both') {
         foreach ($this->sidedFields() as $field_suffix) {
             if ($this->eye->name == 'Left') {
                 $clear_field = 'right_' . $field_suffix;
             } else {
                 // Right
                 $clear_field = 'left_' . $field_suffix;
             }
             $this->{$clear_field} = null;
         }
     }
     return parent::beforeValidate();
 }