mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
register birthdateValidator
in birthdate validator, improve the message
This commit is contained in:
@@ -34,4 +34,9 @@ use Symfony\Component\Validator\Constraint;
|
||||
class Birthdate extends Constraint
|
||||
{
|
||||
public $message = "The birthdate must be before %date%";
|
||||
|
||||
public function validatedBy()
|
||||
{
|
||||
return 'birthdate_not_before';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user