Allow ordering to be customizable (more easily) in repositories
|Priority:||Should have||Due date:|
|Assignee:||Karsten Dambekalns||% Done:||
|Target version:||TYPO3 Flow Base Distribution - 1.0 alpha 12|
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.
|related to Extbase MVC Framework - Task #4724: Allow StoragePid to be manually defined||Resolved||2009-09-21|
[+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.
Updated by Karsten Dambekalns almost 3 years ago
- Status changed from New to Accepted
- Assignee set to Karsten Dambekalns
- Target version set to 1.0 alpha 12