]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Import/ReadabilityImport.php
Clearing entities in the loop fail on Postgres
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / ReadabilityImport.php
index 7bae647d751967badc971fd7a90d5c5dfb4612da..c7cfe15d91f5c6f62e7f3a766c555fe979518096 100644 (file)
@@ -169,14 +169,11 @@ class ReadabilityImport extends AbstractImport
             // flush every 20 entries
             if (($i % 20) === 0) {
                 $this->em->flush();
-
-                // clear only affected entities
-                $this->em->clear(Entry::class);
-                $this->em->clear(Tag::class);
             }
             ++$i;
         }
 
         $this->em->flush();
+        $this->em->clear();
     }
 }