From 38f7c4590362e4657402eb1b58ad29b44ec763a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 18 Nov 2019 17:26:41 +0100 Subject: Added button to show entries with the same domain --- .../CoreBundle/Repository/EntryRepository.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php') diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index bfd07937..f2c73bbf 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -36,6 +36,26 @@ class EntryRepository extends EntityRepository */ public function getBuilderForUnreadByUser($userId) { + return $this + ->getSortedQueryBuilderByUser($userId) + ->andWhere('e.isArchived = false') + ; + } + + /** + * Retrieves entries with the same domain. + * + * @param int $userId + * @param int $entryId + * + * @return QueryBuilder + */ + public function getBuilderForSameDomainByUser($userId, $entryId) + { + dump($entryId);die; + + $ + return $this ->getSortedQueryBuilderByUser($userId) ->andWhere('e.isArchived = false') -- cgit v1.2.3