aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 47db4c07..05f0e0ba 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -345,26 +345,6 @@ class EntryRepository extends EntityRepository
345 } 345 }
346 346
347 /** 347 /**
348 * Count all entries for a tag and a user.
349 *
350 * @param int $userId
351 * @param int $tagId
352 *
353 * @return int
354 */
355 public function countAllEntriesByUserIdAndTagId($userId, $tagId)
356 {
357 $qb = $this->createQueryBuilder('e')
358 ->select('count(e.id)')
359 ->leftJoin('e.tags', 't')
360 ->where('e.user = :userId')->setParameter('userId', $userId)
361 ->andWhere('t.id = :tagId')->setParameter('tagId', $tagId)
362 ;
363
364 return (int) $qb->getQuery()->getSingleScalarResult();
365 }
366
367 /**
368 * Remove all entries for a user id. 348 * Remove all entries for a user id.
369 * Used when a user want to reset all informations. 349 * Used when a user want to reset all informations.
370 * 350 *