TYPO3CMS-Reference-CoreApi
TYPO3CMS-Reference-CoreApi copied to clipboard
Add information about language restriction to page on RestrictionBuilder
https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Database/RestrictionBuilder/Index.html
- language restriction is not in the default restriction
- a LanguageRestriction does not exist
- ideally, people migrating from Extbase queries should be made aware
see also see https://forge.typo3.org/issues/88955
The QueryBuilder contains the DefaultRestrictionContainer which contains restrictions for deleted and hidden flags and time-based restrictions. So the language was never taken into account, changing this behavior would be a big breaking change.
Ok, but in that case it should exist a language restriction that can be added in order to get data only for current language. This is a feature that we always need when working with QueryBuilder on a multi-language website.
I expected the DefaultRestriction to include a language restriction as well. This might also trip up people migrating from Extbase query building.
We might want to add the information to the documentation, at least.
Agreed. LanguageRestriction would be very, very useful.
topic has been idle
This will be covered in https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/pull/2065
@linawolf I assume, this issue can be closed?
I added some more context in the description - mostly taken from the core issue.
No reaction in 3 years