AnnotationRepository: rename getBuilderByUser

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>
This commit is contained in:
Kevin Decherf 2018-09-02 17:32:32 +02:00
parent ada5d5b269
commit 69b563948d

View file

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