mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
fix import
This commit is contained in:
@@ -192,7 +192,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
/** @var Evaluation $eval */
|
||||
$eval = $this->getOrCreateEntity($this->evaluationRepository, 'title', ['fr' => $evaluationTitle]);
|
||||
$eval->setTitle(['fr' => $evaluationTitle]);
|
||||
$eval->setSocialAction($socialAction);
|
||||
$eval->addSocialAction($socialAction);
|
||||
|
||||
$this->entityManager->persist($eval);
|
||||
|
||||
@@ -212,7 +212,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
$socialAction->addGoal($goal);
|
||||
$goal->addSocialAction($socialAction);
|
||||
|
||||
//$this->entityManager->persist($socialAction);
|
||||
$this->entityManager->persist($socialAction);
|
||||
$this->entityManager->persist($goal);
|
||||
|
||||
return $goal;
|
||||
@@ -239,7 +239,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
}
|
||||
|
||||
$this->entityManager->persist($result);
|
||||
//$this->entityManager->persist($socialAction);
|
||||
$this->entityManager->persist($socialAction);
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -380,8 +380,8 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
||||
|
||||
if (null !== $socialAction) {
|
||||
$goal = $this->handleGoal($row[4], $socialAction);
|
||||
$result = $this->handleResult($row[5], $socialActions['socialAction'], $goal);
|
||||
$eval = $this->handleEvaluation($row[6], $socialActions['socialAction']);
|
||||
$result = $this->handleResult($row[5], $socialAction, $goal);
|
||||
$eval = $this->handleEvaluation($row[6], $socialAction);
|
||||
}
|
||||
|
||||
$this->entityManager->flush();
|
||||
|
Reference in New Issue
Block a user