aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/WallabagImport.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/WallabagImport.php')
-rw-r--r--src/Wallabag/ImportBundle/Import/WallabagImport.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/WallabagImport.php b/src/Wallabag/ImportBundle/Import/WallabagImport.php
index d65bc530..b265f9f1 100644
--- a/src/Wallabag/ImportBundle/Import/WallabagImport.php
+++ b/src/Wallabag/ImportBundle/Import/WallabagImport.php
@@ -185,6 +185,7 @@ abstract class WallabagImport implements ImportInterface
185 // flush every 20 entries 185 // flush every 20 entries
186 if (($i % 20) === 0) { 186 if (($i % 20) === 0) {
187 $this->em->flush(); 187 $this->em->flush();
188 $this->em->clear();
188 } 189 }
189 ++$i; 190 ++$i;
190 } 191 }