allow null values on phonenumber in location and person

This commit is contained in:
2022-03-02 15:53:39 +01:00
parent 6a3c8017f0
commit 09de7cbf7d
3 changed files with 4 additions and 8 deletions

View File

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