aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas Hart <contact@nclshart.net>2017-08-22 10:42:54 +0200
committerNicolas Hart <contact@nclshart.net>2017-08-22 10:42:54 +0200
commitdbf1188c5b78b7190cbfce2db00e08d5e69029ff (patch)
tree9de9c091b90603ab73e8c264bd1fd7a26af35dbe /src
parent215409a8b2ea3888fc197c8cd7beddda0a9f1403 (diff)
downloadwallabag-dbf1188c5b78b7190cbfce2db00e08d5e69029ff.tar.gz
wallabag-dbf1188c5b78b7190cbfce2db00e08d5e69029ff.tar.zst
wallabag-dbf1188c5b78b7190cbfce2db00e08d5e69029ff.zip
rename getAllEntriesIdAndUrl into findAllEntriesIdAndUrlByUserId
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Command/CleanDuplicatesCommand.php2
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php2
2 files changed, 2 insertions, 2 deletions
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
71 $em = $this->getContainer()->get('doctrine.orm.entity_manager'); 71 $em = $this->getContainer()->get('doctrine.orm.entity_manager');
72 $repo = $this->getContainer()->get('wallabag_core.entry_repository'); 72 $repo = $this->getContainer()->get('wallabag_core.entry_repository');
73 73
74 $entries = $repo->getAllEntriesIdAndUrl($user->getId()); 74 $entries = $repo->findAllEntriesIdAndUrlByUserId($user->getId());
75 75
76 $duplicatesCount = 0; 76 $duplicatesCount = 0;
77 $urls = []; 77 $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
355 * Get id and url from all entries 355 * Get id and url from all entries
356 * Used for the clean-duplicates command. 356 * Used for the clean-duplicates command.
357 */ 357 */
358 public function getAllEntriesIdAndUrl($userId) 358 public function findAllEntriesIdAndUrlByUserId($userId)
359 { 359 {
360 $qb = $this->createQueryBuilder('e') 360 $qb = $this->createQueryBuilder('e')
361 ->select('e.id, e.url') 361 ->select('e.id, e.url')