X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FRepository%2FEntryRepository.php;h=2286317c177097f53ff8cf389e1dd05a72dfc0a5;hb=02d17813a11d27e0232c38d1adf037cefdb176c1;hp=0e82b9b20dbf0698ede8b73386347d19301fd01e;hpb=159986c4fbf63dd93136ea5c52ff0be705aefaf3;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 0e82b9b2..2286317c 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -162,24 +162,6 @@ class EntryRepository extends EntityRepository return $languages; } - /** - * 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 *