diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-18 15:29:57 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-04-18 15:29:57 +0200 |
commit | 23d24b17509ed3e8725bc911a8a2f8fe502e38f2 (patch) | |
tree | 3850b185d44a67e002837eed68def02a129695a3 /src/Wallabag/ImportBundle/Import/WallabagImport.php | |
parent | dc12084d933dc4981a6ff489622845053d4914b3 (diff) | |
download | wallabag-23d24b17509ed3e8725bc911a8a2f8fe502e38f2.tar.gz wallabag-23d24b17509ed3e8725bc911a8a2f8fe502e38f2.tar.zst wallabag-23d24b17509ed3e8725bc911a8a2f8fe502e38f2.zip |
Add tests
Diffstat (limited to 'src/Wallabag/ImportBundle/Import/WallabagImport.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Import/WallabagImport.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |