]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Repository/EntryRepository.php
Merge pull request #1436 from wallabag/v2-register
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Repository / EntryRepository.php
index 0e82b9b20dbf0698ede8b73386347d19301fd01e..57bf8024c150ae08537b6f7678d4b8c8160a3724 100644 (file)
@@ -163,27 +163,9 @@ class EntryRepository extends EntityRepository
     }
 
     /**
-     * Used only in test case to get the right entry associated to the right user
+     * Used only in test case to get the right entry associated to the right user.
      *
-     * @param  string $username
-     *
-     * @return Entry
-     */
-    public function findOneByUsernameAndNotStarred($username)
-    {
-        return $this->createQueryBuilder('e')
-            ->leftJoin('e.user', 'u')
-            ->where('u.username = :username')->setParameter('username', $username)
-            ->andWhere('e.isStarred = false')
-            ->setMaxResults(1)
-            ->getQuery()
-            ->getSingleResult();
-    }
-
-    /**
-     * Used only in test case to get the right entry associated to the right user
-     *
-     * @param  string $username
+     * @param string $username
      *
      * @return Entry
      */