aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-09-23 10:56:08 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-25 12:29:19 +0200
commitbd206a84d8c333c1287f5cb81d2e29f3afe515c2 (patch)
treef54a968e2cfa005941a53a053e479529deb52d7b /src
parent64b1229b2d711e6b2f0e60de482802d9e86b912f (diff)
downloadwallabag-bd206a84d8c333c1287f5cb81d2e29f3afe515c2.tar.gz
wallabag-bd206a84d8c333c1287f5cb81d2e29f3afe515c2.tar.zst
wallabag-bd206a84d8c333c1287f5cb81d2e29f3afe515c2.zip
Fixed tests by removing clear()
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/ImportBundle/Import/BrowserImport.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Wallabag/ImportBundle/Import/BrowserImport.php b/src/Wallabag/ImportBundle/Import/BrowserImport.php
index 198e148e..44315e8b 100644
--- a/src/Wallabag/ImportBundle/Import/BrowserImport.php
+++ b/src/Wallabag/ImportBundle/Import/BrowserImport.php
@@ -94,10 +94,6 @@ abstract class BrowserImport extends AbstractImport
94 // flush every 20 entries 94 // flush every 20 entries
95 if (($i % 20) === 0) { 95 if (($i % 20) === 0) {
96 $this->em->flush(); 96 $this->em->flush();
97
98 // clear only affected entities
99 $this->em->clear(Entry::class);
100 $this->em->clear(Tag::class);
101 } 97 }
102 ++$i; 98 ++$i;
103 } 99 }