diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 2 | ||||
-rw-r--r-- | src/Wallabag/ImportBundle/Import/WallabagImport.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index ac68b6d9..29361a32 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -258,7 +258,7 @@ class PocketImport implements ImportInterface | |||
258 | // flush every 20 entries | 258 | // flush every 20 entries |
259 | if (($i % 20) === 0) { | 259 | if (($i % 20) === 0) { |
260 | $this->em->flush(); | 260 | $this->em->flush(); |
261 | $this->em->clear(); | 261 | $this->em->clear($entry); |
262 | } | 262 | } |
263 | ++$i; | 263 | ++$i; |
264 | } | 264 | } |
diff --git a/src/Wallabag/ImportBundle/Import/WallabagImport.php b/src/Wallabag/ImportBundle/Import/WallabagImport.php index b265f9f1..65803823 100644 --- a/src/Wallabag/ImportBundle/Import/WallabagImport.php +++ b/src/Wallabag/ImportBundle/Import/WallabagImport.php | |||
@@ -185,7 +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 | $this->em->clear($entry); |
189 | } | 189 | } |
190 | ++$i; | 190 | ++$i; |
191 | } | 191 | } |