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