Reset languageMode query setting for child object queries in Extbase
This behavior might be intended but it would be cool if it would be configurable somehow:
I have an Extbase domain model that can not be translated. It points to a child record that is translatable.
config.sys_language_mode is set to "strict".
When the language changes and the child record is not translated the parent object property will be empty (because the original object is removed during language overlay).
Should the getPreparedQuery() method in the DataMapper also reset the language mode setting by default to not destroy relations by language overlay?
Should this be configurable? Feedback is welcome:)
An actual example of this problem can be found in the cz_simple_cal Extension. The index entries point to single events that might be translated or not. How would you handle this with language mode "strict"? Enhance the event index query, so that only index records are found where a translation exists?