create view for current address and apply on Person/Household normalizer

This commit is contained in:
2021-06-17 13:21:55 +02:00
parent 38bff2e42f
commit ef55d2cf7f
8 changed files with 240 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ class Address
* @ORM\Column(type="date")
* @groups({"write"})
*/
private $validFrom;
private \DateTime $validFrom;
/**
* Indicates when the address ends. Used to build an history
@@ -127,7 +127,7 @@ class Address
* @ORM\Column(type="date", nullable=true)
* @groups({"write"})
*/
private $validTo;
private ?\DateTime $validTo = null;
/**
* True if the address is a "no address", aka homeless person, ...