[BUGFIX] Make Extbase translation handling consistent with TypoScript
Make Extbase fetch records in the same way as in TypoScript rendering, making QuerySettings options mean the same as corresponding settings from TypoScript. This change allows e.g. to filter and sort by translated values of the aggregate root. To make upgrades easier a feature switch is introduced which enables the new behavior. It can be disabled with TypoScript if somebody relies on the old behavior. The feature switch is enabled by default in v9 and will be gone in v10 so in version 10 the fixed way will be the only way to fetch records in Extbase. Releases: master Resolves: #82363 Resolves: #84011 Change-Id: I58d0a24c1f73debc6b9251efea9c28c9cf09d6d0 Reviewed-on: https://review.typo3.org/53974 Reviewed-by:Markus Klein <markus.klein@typo3.org> Tested-by:
Markus Klein <markus.klein@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by:
TYPO3com <no-reply@typo3.com>
Showing
- typo3/sysext/core/Classes/Context/LanguageAspect.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Context/LanguageAspect.php
- typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php 1 addition, 1 deletion...ysext/core/Classes/Database/Schema/ConnectionMigrator.php
- typo3/sysext/core/Documentation/Changelog/master/Important-82363-MakeExtBaseTranslationHandlingConsistentWithTyposcript.rst 229 additions, 0 deletions...akeExtBaseTranslationHandlingConsistentWithTyposcript.rst
- typo3/sysext/extbase/Classes/Domain/Model/FileReference.php 20 additions, 1 deletiontypo3/sysext/extbase/Classes/Domain/Model/FileReference.php
- typo3/sysext/extbase/Classes/Persistence/Generic/LazyLoadingProxy.php 7 additions, 3 deletions.../extbase/Classes/Persistence/Generic/LazyLoadingProxy.php
- typo3/sysext/extbase/Classes/Persistence/Generic/LazyObjectStorage.php 7 additions, 3 deletions...extbase/Classes/Persistence/Generic/LazyObjectStorage.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMap.php 1 addition, 1 deletion...xt/extbase/Classes/Persistence/Generic/Mapper/DataMap.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapFactory.php 2 additions, 2 deletions...ase/Classes/Persistence/Generic/Mapper/DataMapFactory.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php 53 additions, 3 deletions...extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Query.php 24 additions, 0 deletionstypo3/sysext/extbase/Classes/Persistence/Generic/Query.php
- typo3/sysext/extbase/Classes/Persistence/Generic/QueryResult.php 1 addition, 1 deletion...ysext/extbase/Classes/Persistence/Generic/QueryResult.php
- typo3/sysext/extbase/Classes/Persistence/Generic/QuerySettingsInterface.php 4 additions, 0 deletions...se/Classes/Persistence/Generic/QuerySettingsInterface.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php 124 additions, 31 deletions...se/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php 128 additions, 5 deletions...lasses/Persistence/Generic/Storage/Typo3DbQueryParser.php
- typo3/sysext/extbase/Classes/Persistence/Generic/Typo3QuerySettings.php 6 additions, 0 deletions...xtbase/Classes/Persistence/Generic/Typo3QuerySettings.php
- typo3/sysext/extbase/Tests/Functional/Persistence/Fixtures/translatedBlogExampleData.csv 1 addition, 1 deletion...tional/Persistence/Fixtures/translatedBlogExampleData.csv
- typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataLegacyTest.php 1160 additions, 0 deletions...s/Functional/Persistence/QueryLocalizedDataLegacyTest.php
- typo3/sysext/extbase/Tests/Functional/Persistence/QueryLocalizedDataTest.php 348 additions, 271 deletions...e/Tests/Functional/Persistence/QueryLocalizedDataTest.php
- typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedContentLegacyTest.php 1244 additions, 0 deletions...ts/Functional/Persistence/TranslatedContentLegacyTest.php
- typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedContentTest.php 126 additions, 288 deletions...se/Tests/Functional/Persistence/TranslatedContentTest.php
Please register or sign in to comment