aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-07-03 07:30:54 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-07-03 07:30:54 +0200
commit38520658addc217f127b0627ea28dcf8d6e6178c (patch)
tree71795eadcf13fda9198b8cd9a3da26d51826bbd9 /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parentf808b01692a835673f328d7221ba8c212caa9b61 (diff)
downloadwallabag-38520658addc217f127b0627ea28dcf8d6e6178c.tar.gz
wallabag-38520658addc217f127b0627ea28dcf8d6e6178c.tar.zst
wallabag-38520658addc217f127b0627ea28dcf8d6e6178c.zip
Fix tests
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index a65bfe3b..c27ee90c 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -325,7 +325,7 @@ class EntryRepository extends EntityRepository
325 ->where('e.user=:userId')->setParameter('userId', $userId) 325 ->where('e.user=:userId')->setParameter('userId', $userId)
326 ; 326 ;
327 327
328 return $qb->getQuery()->getSingleScalarResult(); 328 return (int) $qb->getQuery()->getSingleScalarResult();
329 } 329 }
330 330
331 /** 331 /**
@@ -345,7 +345,7 @@ class EntryRepository extends EntityRepository
345 ->andWhere('t.id=:tagId')->setParameter('tagId', $tagId) 345 ->andWhere('t.id=:tagId')->setParameter('tagId', $tagId)
346 ; 346 ;
347 347
348 return $qb->getQuery()->getSingleScalarResult(); 348 return (int) $qb->getQuery()->getSingleScalarResult();
349 } 349 }
350 350
351 /** 351 /**