diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index f812739c4..056efc388 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -105,9 +105,9 @@ class Person implements HasCenterInterface * The person's deathdate * @var \DateTime * - * @ORM\Column(type="date", nullable=true) + * @ORM\Column(type="date_immutable", nullable=true) */ - private $deathdate; + private ?\DateTimeImmutable $deathdate; /** * The person's place of birth @@ -159,7 +159,7 @@ class Person implements HasCenterInterface * @var CommentEmbeddable * @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="genderComment_") */ - private $genderComment; + private CommentEmbeddable $genderComment; /** * The marital status of the person @@ -183,7 +183,7 @@ class Person implements HasCenterInterface * @var CommentEmbeddable * @ORM\Embedded(class="Chill\MainBundle\Entity\Embeddable\CommentEmbeddable", columnPrefix="maritalStatusComment_") */ - private $maritalStatusComment; + private CommentEmbeddable $maritalStatusComment; /** * Contact information for contacting the person @@ -279,7 +279,7 @@ class Person implements HasCenterInterface * * @ORM\Column(type="boolean", options={"default" : false}) */ - private $acceptSMS; + private ?bool $acceptSMS = null; /** * Accept receiving email @@ -287,7 +287,7 @@ class Person implements HasCenterInterface * * @ORM\Column(type="boolean", options={"default" : false}) */ - private $acceptEmail; + private ?bool $acceptEmail = null; /** * Number of children @@ -295,7 +295,7 @@ class Person implements HasCenterInterface * * @ORM\Column(type="integer", nullable=true) */ - private $numberOfChildren; + private ?int $numberOfChildren = null; /** * @var boolean