Use the magic method and not the getter.

This commit is contained in:
Tim Schumacher 2014-07-22 21:47:53 +02:00
parent e9f6dcfdae
commit cbaec8676a

View file

@ -255,7 +255,7 @@ class EventController extends Controller
} else {
$tag_obj = new Tag();
$tag_obj->name = $tag;
$tag_obj->slug = \URLify::filter($tag_obj->getName(), 255, 'de');
$tag_obj->slug = \URLify::filter($tag_obj->name, 255, 'de');
$em->persist($tag_obj);
$em->flush();
$entity->addTag($tag_obj);