Fixed: cascade persist the center history when a person is created

This commit is contained in:
Julien Fastré 2022-09-28 17:21:39 +02:00
parent 3feb5115a5
commit 2309484692

View File

@ -187,7 +187,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
private ?Center $center = null;
/**
* @ORM\OneToMany(targetEntity=PersonCenterHistory::class, mappedBy="person")
* @ORM\OneToMany(targetEntity=PersonCenterHistory::class, mappedBy="person", cascade={"persist"})
* @var Collection|PersonCenterHistory[]
*/
private Collection $centerHistory;