diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-24 10:06:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-24 10:06:12 +0200 |
commit | a1c18418288a9521c980c96fd5defffc757a81c6 (patch) | |
tree | 7331a401bec4f3a4d2a8afc6462ac4fe2eea32f9 /src/Wallabag/AnnotationBundle/Repository | |
parent | 1e7807e703fd75eceff3df512308b56e452d6dc6 (diff) | |
parent | aa4741091f3f2cc7e4a7ef061a04678597ddeca8 (diff) | |
download | wallabag-a1c18418288a9521c980c96fd5defffc757a81c6.tar.gz wallabag-a1c18418288a9521c980c96fd5defffc757a81c6.tar.zst wallabag-a1c18418288a9521c980c96fd5defffc757a81c6.zip |
Merge pull request #1890 from wallabag/v2-api-annotation-switched
bring annotations to API
Diffstat (limited to 'src/Wallabag/AnnotationBundle/Repository')
-rw-r--r-- | src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php index 5f7da70e..8cccffba 100644 --- a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php +++ b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php | |||
@@ -50,7 +50,8 @@ class AnnotationRepository extends EntityRepository | |||
50 | { | 50 | { |
51 | return $this->createQueryBuilder('a') | 51 | return $this->createQueryBuilder('a') |
52 | ->andWhere('a.id = :annotationId')->setParameter('annotationId', $annotationId) | 52 | ->andWhere('a.id = :annotationId')->setParameter('annotationId', $annotationId) |
53 | ->getQuery()->getSingleResult() | 53 | ->getQuery() |
54 | ->getSingleResult() | ||
54 | ; | 55 | ; |
55 | } | 56 | } |
56 | 57 | ||
@@ -67,7 +68,8 @@ class AnnotationRepository extends EntityRepository | |||
67 | return $this->createQueryBuilder('a') | 68 | return $this->createQueryBuilder('a') |
68 | ->where('a.entry = :entryId')->setParameter('entryId', $entryId) | 69 | ->where('a.entry = :entryId')->setParameter('entryId', $entryId) |
69 | ->andwhere('a.user = :userId')->setParameter('userId', $userId) | 70 | ->andwhere('a.user = :userId')->setParameter('userId', $userId) |
70 | ->getQuery()->getResult() | 71 | ->getQuery() |
72 | ->getResult() | ||
71 | ; | 73 | ; |
72 | } | 74 | } |
73 | 75 | ||