From 39e0e01eb8aa3dea2006920e4081099d1af842d5 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 3 Nov 2021 14:15:48 +0100 Subject: [PATCH] cascade persist added to Activity::documents --- src/Bundle/ChillActivityBundle/Entity/Activity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillActivityBundle/Entity/Activity.php b/src/Bundle/ChillActivityBundle/Entity/Activity.php index ae310f775..e25448f10 100644 --- a/src/Bundle/ChillActivityBundle/Entity/Activity.php +++ b/src/Bundle/ChillActivityBundle/Entity/Activity.php @@ -158,7 +158,7 @@ class Activity implements HasCenterInterface, HasScopeInterface, AccompanyingPer private ?Collection $thirdParties = null; /** - * @ORM\ManyToMany(targetEntity="Chill\DocStoreBundle\Entity\StoredObject") + * @ORM\ManyToMany(targetEntity="Chill\DocStoreBundle\Entity\StoredObject", cascade={"persist"}) */ private Collection $documents;