rename getAllEntriesId into findAllEntriesIdByUserId

This commit is contained in:
Nicolas Hart 2017-08-21 18:19:42 +02:00
parent 511f1ce1e8
commit 215409a8b2
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class ReloadEntryCommand extends ContainerAwareCommand
} }
$entryRepository = $this->getContainer()->get('wallabag_core.entry_repository'); $entryRepository = $this->getContainer()->get('wallabag_core.entry_repository');
$entryIds = $entryRepository->getAllEntriesId($userId); $entryIds = $entryRepository->findAllEntriesIdByUserId($userId);
$nbEntries = count($entryIds); $nbEntries = count($entryIds);
if (!$nbEntries) { if (!$nbEntries) {

View file

@ -369,7 +369,7 @@ class EntryRepository extends EntityRepository
* *
* @return array * @return array
*/ */
public function getAllEntriesId($userId = null) public function findAllEntriesIdByUserId($userId = null)
{ {
$qb = $this->createQueryBuilder('e') $qb = $this->createQueryBuilder('e')
->select('e.id'); ->select('e.id');