From: Nicolas LÅ“uillet Date: Fri, 23 Sep 2016 08:56:08 +0000 (+0200) Subject: Fixed tests by removing clear() X-Git-Tag: 2.1.0~26^2~5 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=bd206a84d8c333c1287f5cb81d2e29f3afe515c2;p=github%2Fwallabag%2Fwallabag.git Fixed tests by removing clear() --- 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 // flush every 20 entries if (($i % 20) === 0) { $this->em->flush(); - - // clear only affected entities - $this->em->clear(Entry::class); - $this->em->clear(Tag::class); } ++$i; }