Fixed: [SocialAction] Fix the loading of evaluations associated to a SocialActions

This commit is contained in:
Julien Fastré 2022-12-06 10:17:49 +01:00
parent e97a04ab54
commit 5328bee262
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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")