rename getAllEntriesIdAndUrl into findAllEntriesIdAndUrlByUserId

This commit is contained in:
Nicolas Hart 2017-08-22 10:42:54 +02:00
parent 215409a8b2
commit dbf1188c5b
2 changed files with 2 additions and 2 deletions

View file

@ -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 = [];

View file

@ -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')