parent
4eb53a8ceb
commit
51af913608
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ class EventController extends Controller
|
||||||
$tags = explode(',', $tags);
|
$tags = explode(',', $tags);
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$repo = $em->getRepository('CalciferBundle:Tag');
|
$repo = $em->getRepository('CalciferBundle:Tag');
|
||||||
|
$entity->clearTags();
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
$tag = trim($tag);
|
$tag = trim($tag);
|
||||||
$results = $repo->findBy(['name' => $tag]);
|
$results = $repo->findBy(['name' => $tag]);
|
||||||
|
|
Reference in a new issue