From: Nicolas Hart Date: Tue, 22 Aug 2017 08:42:54 +0000 (+0200) Subject: rename getAllEntriesIdAndUrl into findAllEntriesIdAndUrlByUserId X-Git-Tag: 2.3.0~31^2~22^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=dbf1188c5b78b7190cbfce2db00e08d5e69029ff;p=github%2Fwallabag%2Fwallabag.git rename getAllEntriesIdAndUrl into findAllEntriesIdAndUrlByUserId --- diff --git a/src/Wallabag/CoreBundle/Command/CleanDuplicatesCommand.php b/src/Wallabag/CoreBundle/Command/CleanDuplicatesCommand.php index 1caaa391..b58909db 100644 --- a/src/Wallabag/CoreBundle/Command/CleanDuplicatesCommand.php +++ b/src/Wallabag/CoreBundle/Command/CleanDuplicatesCommand.php @@ -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 = []; diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index febc86d3..eb5e3205 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -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')