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