aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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');