From cc9a48315f520bc735a7ed923320eb21f4e701c7 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sat, 22 Nov 2014 21:54:47 +0100 Subject: [PATCH] Set the URI of the event as UID Fixes #35 --- src/Hackspace/Bundle/CalciferBundle/Entity/Event.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php index d15420c..94048fc 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php +++ b/src/Hackspace/Bundle/CalciferBundle/Entity/Event.php @@ -150,7 +150,8 @@ class Event extends BaseEntity $event->setEnd($this->enddate); $event->setSummary($this->summary); $event->setUrl($this->url); - $event->setUid($this->id); + $uid = sprintf("https://%s/termine/%s",$_SERVER['HTTP_HOST'],$this->slug); + $event->setUid($uid); if (count($this->tags) > 0) { $categories = []; foreach($this->tags as $tag) {