]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed tests by removing clear()
authorNicolas LÅ“uillet <nicolas@loeuillet.org>
Fri, 23 Sep 2016 08:56:08 +0000 (10:56 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 25 Sep 2016 10:29:19 +0000 (12:29 +0200)
src/Wallabag/ImportBundle/Import/BrowserImport.php

index 198e148e4cfed4bc4bbd5375825dfd79ce8904a2..44315e8bbf94c5a75f9e5a5027423f2625ee0514 100644 (file)
@@ -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;
         }