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;