From 21a2e84e8d93f1f35e9489ef037566686a7eb050 Mon Sep 17 00:00:00 2001 From: ikselven Date: Sat, 16 Dec 2017 19:07:49 +0100 Subject: [PATCH] fixed deleting recurring appointments being broken --- .../Bundle/CalciferBundle/Entity/RepeatingEventLogEntry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEventLogEntry.php b/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEventLogEntry.php index 90b520c..3f09dff 100644 --- a/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEventLogEntry.php +++ b/src/Hackspace/Bundle/CalciferBundle/Entity/RepeatingEventLogEntry.php @@ -35,7 +35,7 @@ class RepeatingEventLogEntry extends BaseEntity * @var RepeatingEvent * * @ORM\ManyToOne(targetEntity="RepeatingEvent") - * @ORM\JoinColumn(name="repeating_events_id", referencedColumnName="id") + * @ORM\JoinColumn(name="repeating_events_id", referencedColumnName="id", onDelete="CASCADE") */ protected $repeating_event; @@ -67,4 +67,4 @@ class RepeatingEventLogEntry extends BaseEntity * @ORM\Column(name="event_enddate", type="datetimetz", nullable=true) */ protected $event_enddate; -} \ No newline at end of file +}