예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function validate(ValidatorInterface &$validator)
 {
     $validator->present('day');
     $validator->present('account_id');
     parent::validate($validator);
 }
예제 #2
0
 /**
  * Validate object properties before object is saved.
  *
  * @param ValidatorInterface $validator
  */
 public function validate(ValidatorInterface &$validator)
 {
     $validator->presentAndUnique('email');
     $validator->present('password');
     parent::validate($validator);
 }