Esempio n. 1
0
 /**
  * Method designed to be subclassed with validation rules
  * 
  * The returned array should be a hash of field name to error message
  * 
  * @param BaseDomainModel $model
  * @return array
  */
 public function getValidationErrors(BaseDomainModel $model)
 {
     // We default to calling the corresponding method on the model
     // object.
     return $model->getValidationErrors();
 }