mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 05:44:24 +00:00
remove regex
This commit is contained in:
parent
37e38436a8
commit
7ad78fbce1
@ -372,9 +372,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* The person's mobile phone number.
|
* The person's mobile phone number.
|
||||||
*
|
*
|
||||||
* @ORM\Column(type="text")
|
* @ORM\Column(type="text")
|
||||||
* @Assert\Regex(
|
|
||||||
* pattern="/^([\+{1}])([0-9\s*]{4,20})$/",
|
|
||||||
* )
|
|
||||||
* @PhonenumberConstraint(
|
* @PhonenumberConstraint(
|
||||||
* type="mobile",
|
* type="mobile",
|
||||||
* )
|
* )
|
||||||
@ -430,9 +427,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
|
|||||||
* The person's phonenumber.
|
* The person's phonenumber.
|
||||||
*
|
*
|
||||||
* @ORM\Column(type="text", nullable=true)
|
* @ORM\Column(type="text", nullable=true)
|
||||||
* @Assert\Regex(
|
|
||||||
* pattern="/^([\+{1}])([0-9\s*]{4,20})$/",
|
|
||||||
* )
|
|
||||||
* @PhonenumberConstraint(
|
* @PhonenumberConstraint(
|
||||||
* type="landline",
|
* type="landline",
|
||||||
* )
|
* )
|
||||||
|
@ -19,8 +19,5 @@ Chill\PersonBundle\Entity\AccompanyingPeriod:
|
|||||||
Chill\PersonBundle\Entity\PersonPhone:
|
Chill\PersonBundle\Entity\PersonPhone:
|
||||||
properties:
|
properties:
|
||||||
phonenumber:
|
phonenumber:
|
||||||
- Regex:
|
|
||||||
pattern: '/^([\+{1}])([0-9\s*]{4,20})$/'
|
|
||||||
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:
|
- Chill\MainBundle\Validation\Constraint\PhonenumberConstraint:
|
||||||
type: any
|
type: any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user