parent
484ab2762f
commit
68d3ff6f1e
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ class TagController extends Controller
|
||||||
$qb = $em->createQueryBuilder();
|
$qb = $em->createQueryBuilder();
|
||||||
$qb->select(array('e'))
|
$qb->select(array('e'))
|
||||||
->from('CalciferBundle:Event', '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')
|
->where('e.startdate >= :startdate')
|
||||||
->orderBy('e.startdate')
|
->orderBy('e.startdate')
|
||||||
->setParameter('startdate', $now);
|
->setParameter('startdate', $now);
|
||||||
|
@ -79,7 +79,7 @@ class TagController extends Controller
|
||||||
$event->setSummary($entity->summary);
|
$event->setSummary($entity->summary);
|
||||||
$event->setDescription($entity->description);
|
$event->setDescription($entity->description);
|
||||||
$location = new \Jsvrcek\ICS\Model\Description\Location();
|
$location = new \Jsvrcek\ICS\Model\Description\Location();
|
||||||
$location->setName($entity->getLocation()->name);
|
$location->setName($entity->location->name);
|
||||||
$event->setLocations([$location]);
|
$event->setLocations([$location]);
|
||||||
$calendar->addEvent($event);
|
$calendar->addEvent($event);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue