diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2018-09-07 11:43:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 11:43:07 +0000 |
commit | 495f83c92539444bff7dfd6cd647b7d65a74f949 (patch) | |
tree | b72b5a0516d9114aeeccd6ecdb055ee240bda66a /src/Wallabag/AnnotationBundle | |
parent | eb5e3f1d1d26c6835389b5623f3c936fc10c1024 (diff) | |
parent | b8115ff46b15a28021612b695de8785456f8b7a6 (diff) | |
download | wallabag-495f83c92539444bff7dfd6cd647b7d65a74f949.tar.gz wallabag-495f83c92539444bff7dfd6cd647b7d65a74f949.tar.zst wallabag-495f83c92539444bff7dfd6cd647b7d65a74f949.zip |
Merge pull request #3712 from wallabag/refactor-entry-queries
Rename getBuilderByUser and refactor query for untagged entries
Diffstat (limited to 'src/Wallabag/AnnotationBundle')
-rw-r--r-- | src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php index b44f7e64..0de5c934 100644 --- a/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php +++ b/src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php | |||
@@ -21,7 +21,7 @@ class AnnotationRepository extends EntityRepository | |||
21 | public function getBuilderForAllByUser($userId) | 21 | public function getBuilderForAllByUser($userId) |
22 | { | 22 | { |
23 | return $this | 23 | return $this |
24 | ->getBuilderByUser($userId) | 24 | ->getSortedQueryBuilderByUser($userId) |
25 | ; | 25 | ; |
26 | } | 26 | } |
27 | 27 | ||
@@ -133,7 +133,7 @@ class AnnotationRepository extends EntityRepository | |||
133 | * | 133 | * |
134 | * @return QueryBuilder | 134 | * @return QueryBuilder |
135 | */ | 135 | */ |
136 | private function getBuilderByUser($userId) | 136 | private function getSortedQueryBuilderByUser($userId) |
137 | { | 137 | { |
138 | return $this->createQueryBuilder('a') | 138 | return $this->createQueryBuilder('a') |
139 | ->leftJoin('a.user', 'u') | 139 | ->leftJoin('a.user', 'u') |