Project

General

Profile

Actions

Feature #65107

closed

Extbase - child records (ObjectStorage) there should be a possibility to override order and add additional where clause (also in regards to multiple languages)

Added by Andreas Allacher almost 10 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-02-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.

Actions #1

Updated by Riccardo De Contardi over 7 years ago

  • Category set to Extbase
Actions #2

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

Actions

Also available in: Atom PDF