mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-01 08:26:48 +01:00
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:
parent
ada5d5b269
commit
69b563948d
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user