]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/TagController.php
Split tags with commas from UI
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / TagController.php
index 56e5195c1fc0075af5d9896416a5c9f5e5965ee3..f31f4028c217b0d9ba05862b8bcc7177b82dee5f 100644 (file)
@@ -32,10 +32,16 @@ class TagController extends Controller
             $em = $this->getDoctrine()->getManager();
 
             if (is_null($existingTag)) {
-                $entry->addTag($tag);
+                $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
+                    $entry,
+                    $tag
+                );
                 $em->persist($tag);
             } elseif (!$existingTag->hasEntry($entry)) {
-                $entry->addTag($existingTag);
+                $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
+                    $entry,
+                    $existingTag
+                );
                 $em->persist($existingTag);
             }