mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix import
This commit is contained in:
parent
1fbe044729
commit
3d3cc9aeb4
@ -46,9 +46,9 @@ class SocialAction
|
||||
private $desactivationDate;
|
||||
|
||||
/**
|
||||
* @ORM\OneToMany(
|
||||
* @ORM\ManyToMany(
|
||||
* targetEntity=Evaluation::class,
|
||||
* mappedBy="socialAction"
|
||||
* mappedBy="socialActions"
|
||||
* )
|
||||
*/
|
||||
private Collection $evaluations;
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user