mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fixed: [import social work metadata] make association from parent/child SocialIssue and SocialAction on the owning side
This commit is contained in:
parent
19e51cc74c
commit
d759b9c727
@ -287,7 +287,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
$return['socialActionChild'] = $previousSocialActionChild;
|
||||
} else {
|
||||
$return['socialActionChild'] = $child = (new SocialAction())->setTitle(['fr' => $socialActionChildTitle]);
|
||||
$parent->addChild($child);
|
||||
$child->setParent($parent);
|
||||
$child->setIssue($socialIssue)->setOrdering($orderingChild);
|
||||
$this->entityManager->persist($child);
|
||||
}
|
||||
@ -332,7 +332,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
} elseif (null !== $socialIssueChildTitle) {
|
||||
$return['socialIssueChild'] = $child = (new SocialIssue())->setTitle(['fr' => $socialIssueChildTitle])
|
||||
->setOrdering($orderingChild);
|
||||
$parent->addChild($child);
|
||||
$child->setParent($parent);
|
||||
$this->entityManager->persist($child);
|
||||
} else {
|
||||
$return['socialIssueChild'] = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user