From 2afdc1cf4149fd6e0a0ab578878b73bf0f0a2ae2 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 6 Mar 2022 21:55:48 +0100 Subject: [PATCH] fix constraints --- src/Entity/Intervention.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Entity/Intervention.php b/src/Entity/Intervention.php index 3b2aeee..28d479b 100644 --- a/src/Entity/Intervention.php +++ b/src/Entity/Intervention.php @@ -27,6 +27,7 @@ class Intervention implements EntityInterface /** * @ORM\ManyToOne(targetEntity=Establishment::class, inversedBy="interventions") + * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $establishment;