From 230948469273886869ce0f0fe3ef789a865b5266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 28 Sep 2022 17:21:39 +0200 Subject: [PATCH] Fixed: cascade persist the center history when a person is created --- src/Bundle/ChillPersonBundle/Entity/Person.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index 5d9f6a2cb..bf6a283c1 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -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;