diff options
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 | ||