diff options
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/PocketImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/PocketImport.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php index f598e611..29361a32 100644 --- a/src/Wallabag/ImportBundle/Import/PocketImport.php +++ b/src/Wallabag/ImportBundle/Import/PocketImport.php | |||
@@ -258,6 +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($entry); | ||
261 | } | 262 | } |
262 | ++$i; | 263 | ++$i; |
263 | } | 264 | } |