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

@@ -91,14 +91,14 @@ class Location implements TrackCreationInterface, TrackUpdateInterface
private ?string $name = null;
/**
* @ORM\Column(type="phone_number")
* @ORM\Column(type="phone_number", nullable=true)
* @Serializer\Groups({"read", "write", "docgen:read"})
* @PhonenumberConstraint(type="any")
*/
private ?PhoneNumber $phonenumber1 = null;
/**
* @ORM\Column(type="phone_number")
* @ORM\Column(type="phone_number", nullable=true)
* @Serializer\Groups({"read", "write", "docgen:read"})
* @PhonenumberConstraint(type="any")
*/