aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/AnnotationBundle/Repository
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Repository')
-rw-r--r--src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php
index 7f35373f..5f7da70e 100644
--- a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php
+++ b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php
@@ -101,6 +101,7 @@ class AnnotationRepository extends EntityRepository
101 return $this->createQueryBuilder('a') 101 return $this->createQueryBuilder('a')
102 ->leftJoin('a.user', 'u') 102 ->leftJoin('a.user', 'u')
103 ->where('u.username = :username')->setParameter('username', $username) 103 ->where('u.username = :username')->setParameter('username', $username)
104 ->orderBy('a.id', 'DESC')
104 ->setMaxResults(1) 105 ->setMaxResults(1)
105 ->getQuery() 106 ->getQuery()
106 ->getSingleResult(); 107 ->getSingleResult();