From 18d0ad67d6fb41d05bb8d07bc504e721bc3b83d1 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 24 Jun 2021 15:24:29 +0200 Subject: [PATCH] (to rebase/fixup later) Update command based on feedback. --- .../ChillPersonBundle/Service/Import/SocialWorkMetadata.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php b/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php index 0fff36d0f..b5ade864c 100644 --- a/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php +++ b/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php @@ -149,7 +149,10 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface $goal->setTitle(['fr' => $goalTitle]); if (null !== $socialAction) { + $socialAction->addGoal($goal); $goal->addSocialAction($socialAction); + + $this->entityManager->persist($socialAction); } $this->entityManager->persist($goal);