]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
rename getAllEntriesIdAndUrl into findAllEntriesIdAndUrlByUserId 3326/head
authorNicolas Hart <contact@nclshart.net>
Tue, 22 Aug 2017 08:42:54 +0000 (10:42 +0200)
committerNicolas Hart <contact@nclshart.net>
Tue, 22 Aug 2017 08:42:54 +0000 (10:42 +0200)
src/Wallabag/CoreBundle/Command/CleanDuplicatesCommand.php
src/Wallabag/CoreBundle/Repository/EntryRepository.php

index 1caaa39101e99219058bab3d292fc1d90ab37f30..b58909db9f9c40b8c6cadbbdf25f27d7a8240a86 100644 (file)
@@ -71,7 +71,7 @@ class CleanDuplicatesCommand extends ContainerAwareCommand
         $em = $this->getContainer()->get('doctrine.orm.entity_manager');
         $repo = $this->getContainer()->get('wallabag_core.entry_repository');
 
-        $entries = $repo->getAllEntriesIdAndUrl($user->getId());
+        $entries = $repo->findAllEntriesIdAndUrlByUserId($user->getId());
 
         $duplicatesCount = 0;
         $urls = [];
index febc86d3a69bdbf60a0d534fe9e9e525d99c1997..eb5e3205ceeb8b41c81d182e2d9a99f1c33f3d83 100644 (file)
@@ -355,7 +355,7 @@ class EntryRepository extends EntityRepository
      * Get id and url from all entries
      * Used for the clean-duplicates command.
      */
-    public function getAllEntriesIdAndUrl($userId)
+    public function findAllEntriesIdAndUrlByUserId($userId)
     {
         $qb = $this->createQueryBuilder('e')
             ->select('e.id, e.url')