update schema to store location on accompanying period

This commit is contained in:
2021-07-27 18:29:48 +02:00
parent 979ea5841d
commit 34f22d237e
3 changed files with 70 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ use Chill\MainBundle\Entity\Country;
use Chill\MainBundle\Entity\User;
use Chill\PersonBundle\Entity\Household\Household;
use Chill\PersonBundle\Entity\MaritalStatus;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Chill\PersonBundle\Entity\Household\HouseholdMember;
use Chill\MainBundle\Entity\HasCenterInterface;
use Chill\MainBundle\Entity\Address;
@@ -379,6 +380,19 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
*/
private Collection $householdAddresses;
/**
* @ORM\OneToMany(
* targetEntity=AccompanyingPeriod::class,
* mappedBy="personLocation"
* )
*/
private Collection $periodLocatedOn;
/**
* Person constructor.
*
* @param \DateTime|null $opening
*/
public function __construct()
{
$this->accompanyingPeriodParticipations = new ArrayCollection();