]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Repository/EntryRepository.php
Added button to show entries with the same domain
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Repository / EntryRepository.php
index bfd079377ac783bdd4c2e0e2f84cb3f2e9d0496b..f2c73bbfffcdfbd99ee629e1cf449fde626f67ba 100644 (file)
@@ -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')