aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-04-01 14:34:20 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-04-01 14:34:20 +0200
commitc579ce2306297674c56376a2ab5c8ba66a272253 (patch)
tree03f8fdd7c7ee93fd0527d46f2690a81cf6d2d286 /src/Wallabag/CoreBundle/Repository
parent8a6456629814039cfc623cdb279bcba06dacff50 (diff)
downloadwallabag-c579ce2306297674c56376a2ab5c8ba66a272253.tar.gz
wallabag-c579ce2306297674c56376a2ab5c8ba66a272253.tar.zst
wallabag-c579ce2306297674c56376a2ab5c8ba66a272253.zip
Some cleanup
Also, do not run the hashed_url migration into a Doctrine migration
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php6
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();