Transform join table between Person and AccompanyingPeriod in Doctrine entity

This commit is contained in:
2021-03-31 11:21:51 +02:00
parent bd7b4b3fdb
commit a98056d31b
5 changed files with 201 additions and 12 deletions

View File

@@ -42,7 +42,6 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
* name="person_names",
* columns={"firstName", "lastName"}
* )})
* sf4 check index name
* @ORM\HasLifecycleCallbacks()
*/
class Person implements HasCenterInterface
@@ -204,17 +203,13 @@ class Person implements HasCenterInterface
/**
* The person's accompanying periods (when the person was accompanied by the center)
* @var ArrayCollection
* @var Collection
*
* @ORM\ManyToMany(
* targetEntity="Chill\PersonBundle\Entity\AccompanyingPeriod",
* inversedBy="persons",
* @ORM\OneToMany(targetEntity=AccompanyingPeriodParticipation::class,
* mappedBy="person",
* cascade={"persist", "remove", "merge", "detach"})
* @ORM\JoinTable(
* name="persons_accompanying_periods"
* )
*/
private $accompanyingPeriods; //TO-CHANGE in accompanyingHistory
private $accompanyingPeriods;
/**
* A remark over the person