diff --git a/CHANGELOG.md b/CHANGELOG.md index bc8dec1a1..9c7821987 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to +* [activity] Bugfix: documents can now be added to an activity. * [tasks] improve tasks with filter order * [tasks] refactor singleControllerTasks: limit the number of conditions from the context * [validations] validation of accompanying period added: no duplicate participations or resources (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/60). @@ -22,6 +23,7 @@ and this project adheres to * [activity]: perform client-side validation & show/hide fields in the "new location" modal * [admin]: links to activity admin section added again. + ## Test releases ### Test release 2021-10-27 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;