Feature #65107
closedExtbase - child records (ObjectStorage) there should be a possibility to override order and add additional where clause (also in regards to multiple languages)
0%
Description
Sometimes it would be nice to provide child records for a domain object using a certain order and additional where clause.
This also would have to support the multiple languages.
Of course, I could create a Repository Method and just call the method in the domain object instead.
The problem is that this is essentially "lazy" loading then. For performance it might be better to do this directly via annotations in the childrecord property mapping.
Updated by Stefan Froemken over 1 year ago
- Status changed from New to Closed
Hello,
Alexander has just pushed a cool patch which respect sortby for child elements:
https://github.com/TYPO3/typo3/commit/30a93ac88a85066ee12c2730dd9d74847ee252a1
But I do not prefer modifying the child query. Please use property paths like "event.day.categories.uid" in your main query to do so. Since TYPO3 8 extbase allows to insert a TYPO3 QueryBuilder instance with $query->statement($queryBuilder) where you can modify a lot to your needs.
I will close the ticket now. If you feel this is the wrong decision, let me know, and I will re-open it.
Stefan