X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FRepository%2FEntryRepository.php;h=87e34dc997c50fbea9d7864290f554d3d236983f;hb=cfc90f8422fc6ff2625bd338afe8fbf18f917e95;hp=a16be9e01924d4cefb89b6a37db999fb341ef704;hpb=5c072d2b57b2b5f95b25411909ac8a6af2ef6ebe;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index a16be9e0..87e34dc9 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -235,10 +235,9 @@ class EntryRepository extends EntityRepository * * @return array|bool */ - public function existByUrlAndUserId($url, $userId) + public function findByUrlAndUserId($url, $userId) { $res = $this->createQueryBuilder('e') - ->select('e.id, e.createdAt') ->where('e.url = :url')->setParameter('url', $url) ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) ->getQuery() @@ -256,7 +255,7 @@ class EntryRepository extends EntityRepository * * @param int $userId * - * @return integer + * @return int */ public function countAllEntriesByUsername($userId) {