diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 0c175abb..f5089729 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -350,15 +350,15 @@ class EntryRepository extends EntityRepository | |||
350 | * Find an entry by its hashed url and its owner. | 350 | * Find an entry by its hashed url and its owner. |
351 | * If it exists, return the entry otherwise return false. | 351 | * If it exists, return the entry otherwise return false. |
352 | * | 352 | * |
353 | * @param $hashedUrl | 353 | * @param string $hashedUrl Url hashed using sha1 |
354 | * @param $userId | 354 | * @param int $userId |
355 | * | 355 | * |
356 | * @return Entry|bool | 356 | * @return Entry|bool |
357 | */ | 357 | */ |
358 | public function findByHashedUrlAndUserId($hashedUrl, $userId) | 358 | public function findByHashedUrlAndUserId($hashedUrl, $userId) |
359 | { | 359 | { |
360 | $res = $this->createQueryBuilder('e') | 360 | $res = $this->createQueryBuilder('e') |
361 | ->where('e.hashedUrl = :hashed_url')->setParameter('hashed_url', urldecode($hashedUrl)) | 361 | ->where('e.hashedUrl = :hashed_url')->setParameter('hashed_url', $hashedUrl) |
362 | ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) | 362 | ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) |
363 | ->getQuery() | 363 | ->getQuery() |
364 | ->getResult(); | 364 | ->getResult(); |