(to rebase/fixup later) Update command based on feedback.

This commit is contained in:
Pol Dellaiera 2021-06-24 15:24:29 +02:00
parent ea1c12da64
commit 18d0ad67d6

View File

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