From ad4d1caa9e744af57ca58a4e57576533eb682d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 23 Jan 2015 16:28:37 +0100 Subject: move WallabagBundle into Wallabag:CoreBundle --- .../Repository/EntriesRepository.php | 79 ---------------------- 1 file changed, 79 deletions(-) delete mode 100644 src/WallabagBundle/Repository/EntriesRepository.php (limited to 'src/WallabagBundle/Repository') diff --git a/src/WallabagBundle/Repository/EntriesRepository.php b/src/WallabagBundle/Repository/EntriesRepository.php deleted file mode 100644 index 3eb1733d..00000000 --- a/src/WallabagBundle/Repository/EntriesRepository.php +++ /dev/null @@ -1,79 +0,0 @@ -createQueryBuilder('e') - ->select('e') - ->setFirstResult($firstResult) - ->setMaxResults($maxResults) - ->where('e.isRead = 0') - ->andWhere('e.userId =:userId')->setParameter('userId', $userId) - ->getQuery(); - - $paginator = new Paginator($qb); - - return $paginator; - } - - /** - * Retrieves read entries for a user - * - * @param $userId - * @param $firstResult - * @param int $maxResults - * @return Paginator - */ - public function findArchiveByUser($userId, $firstResult, $maxResults = 12) - { - $qb = $this->createQueryBuilder('e') - ->select('e') - ->setFirstResult($firstResult) - ->setMaxResults($maxResults) - ->where('e.isRead = 1') - ->andWhere('e.userId =:userId')->setParameter('userId', $userId) - ->getQuery(); - - $paginator = new Paginator($qb); - - return $paginator; - } - - /** - * Retrieves starred entries for a user - * - * @param $userId - * @param $firstResult - * @param int $maxResults - * @return Paginator - */ - public function findStarredByUser($userId, $firstResult, $maxResults = 12) - { - $qb = $this->createQueryBuilder('e') - ->select('e') - ->setFirstResult($firstResult) - ->setMaxResults($maxResults) - ->where('e.isFav = 1') - ->andWhere('e.userId =:userId')->setParameter('userId', $userId) - ->getQuery(); - - $paginator = new Paginator($qb); - - return $paginator; - } -} -- cgit v1.2.3