diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2019-11-18 17:26:41 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-30 15:48:20 +0200 |
commit | 38f7c4590362e4657402eb1b58ad29b44ec763a6 (patch) | |
tree | e4cb7e84ab18e501ac85c37ed82478423600f1da /src/Wallabag/CoreBundle/Repository/EntryRepository.php | |
parent | 557e810c1f2b2e662f163fc419014e80d5484e3a (diff) | |
download | wallabag-38f7c4590362e4657402eb1b58ad29b44ec763a6.tar.gz wallabag-38f7c4590362e4657402eb1b58ad29b44ec763a6.tar.zst wallabag-38f7c4590362e4657402eb1b58ad29b44ec763a6.zip |
Added button to show entries with the same domain
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 20 |
1 files changed, 20 insertions, 0 deletions
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 | |||
@@ -39,6 +39,26 @@ class EntryRepository extends EntityRepository | |||
39 | return $this | 39 | return $this |
40 | ->getSortedQueryBuilderByUser($userId) | 40 | ->getSortedQueryBuilderByUser($userId) |
41 | ->andWhere('e.isArchived = false') | 41 | ->andWhere('e.isArchived = false') |
42 | ; | ||
43 | } | ||
44 | |||
45 | /** | ||
46 | * Retrieves entries with the same domain. | ||
47 | * | ||
48 | * @param int $userId | ||
49 | * @param int $entryId | ||
50 | * | ||
51 | * @return QueryBuilder | ||
52 | */ | ||
53 | public function getBuilderForSameDomainByUser($userId, $entryId) | ||
54 | { | ||
55 | dump($entryId);die; | ||
56 | |||
57 | $ | ||
58 | |||
59 | return $this | ||
60 | ->getSortedQueryBuilderByUser($userId) | ||
61 | ->andWhere('e.isArchived = false') | ||
42 | ; | 62 | ; |
43 | } | 63 | } |
44 | 64 | ||