TYPO3CMS-Reference-CoreApi icon indicating copy to clipboard operation
TYPO3CMS-Reference-CoreApi copied to clipboard

Add information about language restriction to page on RestrictionBuilder

Open sypets opened this issue 5 years ago • 4 comments

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.

sypets avatar Jan 14 '20 11:01 sypets

topic has been idle

linawolf avatar Jan 24 '21 17:01 linawolf

This will be covered in https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-CoreApi/pull/2065

linawolf avatar Aug 17 '22 12:08 linawolf

@linawolf I assume, this issue can be closed?

brotkrueml avatar Oct 28 '22 12:10 brotkrueml

I added some more context in the description - mostly taken from the core issue.

sypets avatar Oct 28 '22 12:10 sypets

No reaction in 3 years

linawolf avatar Feb 09 '25 10:02 linawolf