From 4a2ada784a97d7a867d83070e00be6c8934adc17 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 24 Jun 2021 15:57:03 +0200 Subject: [PATCH] (to rebase/fixup later) Let Goal be associated to a Result. --- .../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 48dff99bc..0896021f1 100644 --- a/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php +++ b/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php @@ -172,6 +172,9 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface if (null !== $goal) { $result->addGoal($goal); + $goal->addResult($result); + + $this->entityManager->persist($goal); } else { $result->addSocialAction($socialAction); }