cascading remove of Person\CenterHistory

This commit is contained in:
2023-08-02 22:48:32 +02:00
parent e2b500ea5f
commit f2d391ea2e

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>
*/