コード例 #1
0
 public function __construct()
 {
     parent::__construct('id');
     $this->__setFieldNames(self::$fieldNames);
 }
コード例 #2
0
ファイル: Mapper.php プロジェクト: Jouy/domain-model-mapper
 /**
  * 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();
 }