(to rebase/fixup later) Let Goal be associated to a Result.

This commit is contained in:
Pol Dellaiera 2021-06-24 15:57:03 +02:00
parent 3b5ef53b9b
commit 4a2ada784a

View File

@ -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);
}