From 2ceb78114d7c8ba4252f2cf06356ea49b744ae24 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Mon, 6 Jun 2016 06:58:05 +0200 Subject: [PATCH] Generate UIDs by the URL --- src/Hackspace/Bundle/CalciferBundle/Entity/Event.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php index 222737e..3bf1155 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php +++ b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php @@ -139,12 +139,14 @@ class Event extends BaseEntity $categories[] = $tag->name; } + $uid = sprintf("https://%s/termine/%s",$_SERVER['HTTP_HOST'],$this->slug); $event = [ 'SUMMARY' => $this->summary, 'DTSTART' => $this->startdate, 'DESCRIPTION' => $this->description, 'URL' => $this->url, 'CATEGORIES' => $categories, + 'UID' => $uid, ]; if (!is_null($this->enddate)) $event["DTEND"] = $this->enddate;