cascading remove of Person\CenterHistory

This commit is contained in:
Julien Fastré 2023-08-02 22:48:32 +02:00
parent e2b500ea5f
commit f2d391ea2e
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -207,7 +207,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI
private ?PersonCenterCurrent $centerCurrent = null;
/**
* @ORM\OneToMany(targetEntity=PersonCenterHistory::class, mappedBy="person", cascade={"persist"})
* @ORM\OneToMany(targetEntity=PersonCenterHistory::class, mappedBy="person", cascade={"persist", "remove"})
*
* @var Collection<PersonCenterHistory>
*/