Use the right object *grml*

Fixes #27
This commit is contained in:
Tim Schumacher 2014-09-29 13:59:26 +02:00
parent 9330814449
commit 69289df96e

View file

@ -246,7 +246,7 @@ class EventController extends Controller
if (strlen($location_lon) > 0) { if (strlen($location_lon) > 0) {
$location_obj->lon = $location_lon; $location_obj->lon = $location_lon;
} }
$location_obj->slug = $location_obj->generateSlug($location->name,$em); $location_obj->slug = $location_obj->generateSlug($location_obj->name,$em);
$em->persist($location_obj); $em->persist($location_obj);
$em->flush(); $em->flush();
$entity->setLocation($location_obj); $entity->setLocation($location_obj);