aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas Hart <contact@nclshart.net>2017-08-21 18:19:42 +0200
committerNicolas Hart <contact@nclshart.net>2017-08-22 10:41:28 +0200
commit215409a8b2ea3888fc197c8cd7beddda0a9f1403 (patch)
tree34218f758d72659e1b8e2aac96e6094bf82da3a0 /src
parent511f1ce1e87e0f30a455ca6ed73e008bfd557f83 (diff)
downloadwallabag-215409a8b2ea3888fc197c8cd7beddda0a9f1403.tar.gz
wallabag-215409a8b2ea3888fc197c8cd7beddda0a9f1403.tar.zst
wallabag-215409a8b2ea3888fc197c8cd7beddda0a9f1403.zip
rename getAllEntriesId into findAllEntriesIdByUserId
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Command/ReloadEntryCommand.php2
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Command/ReloadEntryCommand.php b/src/Wallabag/CoreBundle/Command/ReloadEntryCommand.php
index 83887224..91998841 100644
--- a/src/Wallabag/CoreBundle/Command/ReloadEntryCommand.php
+++ b/src/Wallabag/CoreBundle/Command/ReloadEntryCommand.php
@@ -41,7 +41,7 @@ class ReloadEntryCommand extends ContainerAwareCommand
41 } 41 }
42 42
43 $entryRepository = $this->getContainer()->get('wallabag_core.entry_repository'); 43 $entryRepository = $this->getContainer()->get('wallabag_core.entry_repository');
44 $entryIds = $entryRepository->getAllEntriesId($userId); 44 $entryIds = $entryRepository->findAllEntriesIdByUserId($userId);
45 45
46 $nbEntries = count($entryIds); 46 $nbEntries = count($entryIds);
47 if (!$nbEntries) { 47 if (!$nbEntries) {
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 9a30cd79..febc86d3 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -369,7 +369,7 @@ class EntryRepository extends EntityRepository
369 * 369 *
370 * @return array 370 * @return array
371 */ 371 */
372 public function getAllEntriesId($userId = null) 372 public function findAllEntriesIdByUserId($userId = null)
373 { 373 {
374 $qb = $this->createQueryBuilder('e') 374 $qb = $this->createQueryBuilder('e')
375 ->select('e.id'); 375 ->select('e.id');