From 5328bee2627514fa67833f236f941972fa2272a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 6 Dec 2022 10:17:49 +0100 Subject: [PATCH] Fixed: [SocialAction] Fix the loading of evaluations associated to a SocialActions --- .../ChillPersonBundle/Entity/SocialWork/SocialAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php index bc439c083..a8c68c8ce 100644 --- a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php +++ b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php @@ -46,7 +46,7 @@ class SocialAction private $desactivationDate; /** - * @ORM\ManyToMany(targetEntity=Evaluation::class, mappedBy="socialActions") + * @ORM\ManyToMany(targetEntity=Evaluation::class, inversedBy="socialActions") * @ORM\JoinTable(name="chill_person_social_work_evaluation_action") */ private Collection $evaluations; @@ -62,7 +62,7 @@ class SocialAction * @ORM\GeneratedValue * @ORM\Column(type="integer") */ - private $id; + private ?int $id = null; /** * @ORM\ManyToOne(targetEntity=SocialIssue::class, inversedBy="socialActions")