normalization of phonenumber

This commit is contained in:
2022-03-02 14:10:48 +01:00
parent 2a9f1dc238
commit f4f488dad1
4 changed files with 68 additions and 3 deletions

View File

@@ -372,6 +372,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
/**
* The person's mobile phone number.
*
* @PhonenumberConstraint(type="mobile")
* @ORM\Column(type="phone_number")
*/
private ?PhoneNumber $mobilenumber;
@@ -425,6 +426,9 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
* The person's phonenumber.
*
* @ORM\Column(type="phone_number")
* @PhonenumberConstraint(
* type="landline",
* )
*/
private ?PhoneNumber $phonenumber;