mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix import
This commit is contained in:
parent
1fbe044729
commit
3d3cc9aeb4
@ -46,9 +46,9 @@ class SocialAction
|
|||||||
private $desactivationDate;
|
private $desactivationDate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ORM\OneToMany(
|
* @ORM\ManyToMany(
|
||||||
* targetEntity=Evaluation::class,
|
* targetEntity=Evaluation::class,
|
||||||
* mappedBy="socialAction"
|
* mappedBy="socialActions"
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
private Collection $evaluations;
|
private Collection $evaluations;
|
||||||
|
@ -192,7 +192,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
|||||||
/** @var Evaluation $eval */
|
/** @var Evaluation $eval */
|
||||||
$eval = $this->getOrCreateEntity($this->evaluationRepository, 'title', ['fr' => $evaluationTitle]);
|
$eval = $this->getOrCreateEntity($this->evaluationRepository, 'title', ['fr' => $evaluationTitle]);
|
||||||
$eval->setTitle(['fr' => $evaluationTitle]);
|
$eval->setTitle(['fr' => $evaluationTitle]);
|
||||||
$eval->setSocialAction($socialAction);
|
$eval->addSocialAction($socialAction);
|
||||||
|
|
||||||
$this->entityManager->persist($eval);
|
$this->entityManager->persist($eval);
|
||||||
|
|
||||||
@ -212,7 +212,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
|||||||
$socialAction->addGoal($goal);
|
$socialAction->addGoal($goal);
|
||||||
$goal->addSocialAction($socialAction);
|
$goal->addSocialAction($socialAction);
|
||||||
|
|
||||||
//$this->entityManager->persist($socialAction);
|
$this->entityManager->persist($socialAction);
|
||||||
$this->entityManager->persist($goal);
|
$this->entityManager->persist($goal);
|
||||||
|
|
||||||
return $goal;
|
return $goal;
|
||||||
@ -239,7 +239,7 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->entityManager->persist($result);
|
$this->entityManager->persist($result);
|
||||||
//$this->entityManager->persist($socialAction);
|
$this->entityManager->persist($socialAction);
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
@ -380,8 +380,8 @@ final class SocialWorkMetadata implements SocialWorkMetadataInterface
|
|||||||
|
|
||||||
if (null !== $socialAction) {
|
if (null !== $socialAction) {
|
||||||
$goal = $this->handleGoal($row[4], $socialAction);
|
$goal = $this->handleGoal($row[4], $socialAction);
|
||||||
$result = $this->handleResult($row[5], $socialActions['socialAction'], $goal);
|
$result = $this->handleResult($row[5], $socialAction, $goal);
|
||||||
$eval = $this->handleEvaluation($row[6], $socialActions['socialAction']);
|
$eval = $this->handleEvaluation($row[6], $socialAction);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->entityManager->flush();
|
$this->entityManager->flush();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user