aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-09-28 20:26:37 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-09-28 20:26:37 +0200
commit02d17813a11d27e0232c38d1adf037cefdb176c1 (patch)
tree3e4be06bd9dde18c9b64ee34ced5850523849e6b /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent159986c4fbf63dd93136ea5c52ff0be705aefaf3 (diff)
downloadwallabag-02d17813a11d27e0232c38d1adf037cefdb176c1.tar.gz
wallabag-02d17813a11d27e0232c38d1adf037cefdb176c1.tar.zst
wallabag-02d17813a11d27e0232c38d1adf037cefdb176c1.zip
Fix tests for all
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php18
1 files changed, 0 insertions, 18 deletions
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
@@ -169,24 +169,6 @@ class EntryRepository extends EntityRepository
169 * 169 *
170 * @return Entry 170 * @return Entry
171 */ 171 */
172 public function findOneByUsernameAndNotStarred($username)
173 {
174 return $this->createQueryBuilder('e')
175 ->leftJoin('e.user', 'u')
176 ->where('u.username = :username')->setParameter('username', $username)
177 ->andWhere('e.isStarred = false')
178 ->setMaxResults(1)
179 ->getQuery()
180 ->getSingleResult();
181 }
182
183 /**
184 * Used only in test case to get the right entry associated to the right user
185 *
186 * @param string $username
187 *
188 * @return Entry
189 */
190 public function findOneByUsernameAndNotArchived($username) 172 public function findOneByUsernameAndNotArchived($username)
191 { 173 {
192 return $this->createQueryBuilder('e') 174 return $this->createQueryBuilder('e')