]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
AnnotationRepository: rename getBuilderByUser
authorKevin Decherf <kevin@kdecherf.com>
Sun, 2 Sep 2018 15:32:32 +0000 (17:32 +0200)
committerKevin Decherf <kevin@kdecherf.com>
Wed, 5 Sep 2018 16:44:08 +0000 (18:44 +0200)
We rename getBuilderByUser to getSortedQueryBuilderByUser as long as the
method currently returns a QueryBuilder with an orderBy()

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
src/Wallabag/AnnotationBundle/Repository/AnnotationRepository.php

index b44f7e647acc4d35a5d0af70a63fd0bc48785680..0de5c934e8d53f25df111d329f829446bf8e02cb 100644 (file)
@@ -21,7 +21,7 @@ class AnnotationRepository extends EntityRepository
     public function getBuilderForAllByUser($userId)
     {
         return $this
-            ->getBuilderByUser($userId)
+            ->getSortedQueryBuilderByUser($userId)
         ;
     }
 
@@ -133,7 +133,7 @@ class AnnotationRepository extends EntityRepository
      *
      * @return QueryBuilder
      */
-    private function getBuilderByUser($userId)
+    private function getSortedQueryBuilderByUser($userId)
     {
         return $this->createQueryBuilder('a')
             ->leftJoin('a.user', 'u')