]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Import/PocketImport.php
Use scheduled entity insertions to avoid tag duplicate
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / PocketImport.php
index e00eb44b369f30306c7163fdb663c89e8053280d..327e25001dc8c2605d446791e44d07d6bae07278 100644 (file)
@@ -227,7 +227,8 @@ class PocketImport extends AbstractImport
         if (isset($importedEntry['tags']) && !empty($importedEntry['tags'])) {
             $this->contentProxy->assignTagsToEntry(
                 $entry,
-                array_keys($importedEntry['tags'])
+                array_keys($importedEntry['tags']),
+                $this->em->getUnitOfWork()->getScheduledEntityInsertions()
             );
         }