mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
move validation on person into annotations
This commit is contained in:
@@ -53,6 +53,7 @@ class BirthdateValidator extends ConstraintValidator
|
||||
if ($limitDate < $value) {
|
||||
$this->context->buildViolation($constraint->message)
|
||||
->setParameter('%date%', $limitDate->format('d-m-Y'))
|
||||
->setCode(Birthdate::BIRTHDATE_INVALID_CODE)
|
||||
->addViolation();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user