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