]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Import/WallabagImport.php
Add doctrine clear after flush, thanks to @BitOne talk at Symfony Live
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / WallabagImport.php
index d65bc5306e1a35038768d5e054b45b3916788318..b265f9f1065aa343701a32b25853d0bcdec32c69 100644 (file)
@@ -185,6 +185,7 @@ abstract class WallabagImport implements ImportInterface
             // flush every 20 entries
             if (($i % 20) === 0) {
                 $this->em->flush();
+                $this->em->clear();
             }
             ++$i;
         }