From f97e7baa98fe185ecf0657f1811f57ddd249be8c Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Fri, 15 Apr 2022 17:15:11 +0200 Subject: [PATCH] fix bug --- src/Entity/Debriefing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Debriefing.php b/src/Entity/Debriefing.php index c02ed6c..be757d7 100644 --- a/src/Entity/Debriefing.php +++ b/src/Entity/Debriefing.php @@ -94,7 +94,7 @@ class Debriefing implements EntityInterface */ public function getProjects(): Collection { - return $this->projects; + return $this->projects ?? new ArrayCollection(); } public function addProject(Project $project): self