From 3eb826d422cad0e6f303e4080e3ca81530fe9303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 2 Mar 2022 14:21:53 +0100 Subject: [PATCH] default value for Phonenumbers --- src/Bundle/ChillPersonBundle/Entity/Person.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index 3fc0da96c..a0c37ec00 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -375,7 +375,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI * @PhonenumberConstraint(type="mobile") * @ORM\Column(type="phone_number") */ - private ?PhoneNumber $mobilenumber; + private ?PhoneNumber $mobilenumber = null; /** * The person's nationality. @@ -430,7 +430,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI * type="landline", * ) */ - private ?PhoneNumber $phonenumber; + private ?PhoneNumber $phonenumber = null; /** * The person's place of birth.