public function __construct()
 {
     parent::__construct('id');
     $this->__setFieldNames(self::$fieldNames);
 }
Esempio n. 2
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();
 }