fix person validation

This commit is contained in:
2021-12-16 21:39:59 +01:00
parent 400ce3ac82
commit 06cbe8325c
5 changed files with 10 additions and 31 deletions

View File

@@ -21,8 +21,6 @@ Chill\PersonBundle\Entity\PersonPhone:
phonenumber:
- Regex:
pattern: '/^([\+{1}])([0-9\s*]{4,20})$/'
groups: [ general, creation ]
message: 'Invalid phone number: it should begin with the international prefix starting with "+", hold only digits and be smaller than 20 characters. Ex: +33123456789'
- Chill\MainBundle\Validation\Constraint\PhonenumberConstraint:
type: any
groups: [ general, creation ]