Feature #9709
Allow ordering to be customizable (more easily) in repositories
Status: | Resolved | Start date: | ||
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | Persistence | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 12 | |||
PHP Version: | Complexity: | |||
Has patch: |
Description
When using findAll() or findBy*() the order of the result cannot be customized without writing your own methods to inject the ordering.
It should be possible to define the (default) ordering to be used in your repository subclass by some easy way.
Associated revisions
[+FEATURE] FLOW3 (Persistence): Add default ordering for repositories
When using findAll() or findBy*() the order of the result cannot be
customized without writing your own methods to inject the ordering.
And if a repository wanted to apply some default ordering to it's own
methods, it still had to either use setOrderings() all over the place or
override createQuery() to centralize that.
Now you can use setDefaultOrderings() on any repository or define
$defaultOrderings in a repository directly. The setting will be picked
up by createQuery() right away.
Change-Id: I261aec2a5e024028bbbd0efad51a5953559f6c1f
Resolves: #9709
History
#1 Updated by Robert Lemke almost 5 years ago
- Status changed from New to Under Review
#2 Updated by Robert Lemke almost 5 years ago
- Status changed from Under Review to New
#3 Updated by Karsten Dambekalns almost 5 years ago
- Status changed from New to Accepted
- Assigned To set to Karsten Dambekalns
- Target version set to 1.0 alpha 12
#4 Updated by Karsten Dambekalns almost 5 years ago
- Status changed from Accepted to Under Review
#5 Updated by Karsten Dambekalns almost 5 years ago
#6 Updated by Karsten Dambekalns almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7a5535df5569d0fc57b09d6b9dae195e2bbc0671.