From 68d3ff6f1e1188908657172becd46bc64d78398c Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Thu, 24 Jul 2014 08:38:33 +0200 Subject: [PATCH] Use the magic method __get Fixes #3 --- .../Bundle/CalciferBundle/Controller/TagController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hackspace/Bundle/CalciferBundle/Controller/TagController.php b/src/Hackspace/Bundle/CalciferBundle/Controller/TagController.php index ce4e9a7..2f46fd3 100755 --- a/src/Hackspace/Bundle/CalciferBundle/Controller/TagController.php +++ b/src/Hackspace/Bundle/CalciferBundle/Controller/TagController.php @@ -61,7 +61,7 @@ class TagController extends Controller $qb = $em->createQueryBuilder(); $qb->select(array('e')) ->from('CalciferBundle:Event', 'e') - ->join('e.tags', 't', 'WITH', $qb->expr()->in('t.id', $tag->getId())) + ->join('e.tags', 't', 'WITH', $qb->expr()->in('t.id', $tag->id)) ->where('e.startdate >= :startdate') ->orderBy('e.startdate') ->setParameter('startdate', $now); @@ -79,7 +79,7 @@ class TagController extends Controller $event->setSummary($entity->summary); $event->setDescription($entity->description); $location = new \Jsvrcek\ICS\Model\Description\Location(); - $location->setName($entity->getLocation()->name); + $location->setName($entity->location->name); $event->setLocations([$location]); $calendar->addEvent($event); }