]> git.immae.eu Git - github/wallabag/wallabag.git/commit
EntryRepository: refactor getBuilderByUser
authorKevin Decherf <kevin@kdecherf.com>
Sun, 2 Sep 2018 15:34:30 +0000 (17:34 +0200)
committerKevin Decherf <kevin@kdecherf.com>
Wed, 5 Sep 2018 16:44:08 +0000 (18:44 +0200)
commitb7c5fda512f29c99db69cb090fafb6f79abf6004
tree849fced9b205612293991b9091250c9707347697
parent69b563948de3b293fee47f60bde3f63d512b13c5
EntryRepository: refactor getBuilderByUser

We refactor getBuilderByUser to separate QueryBuilder getter and the
orderBy(). The previous code of getBuilderByUser() has been moved to
getSortedQueryBuilderByUser(). getBuildByUser() now returns a
QueryBuilder without the call to orderBy().

A new method named sortQueryBuilder() returns a given QueryBuilder with
an orderBy() call using given sort parameters.

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