#104419TCA setting "allowLanguageSynchronization" for pages records not working when using extbase model
Description
I’ve defined an extbase model based on table “pages” in file Configuration/Extbase/Persistence/Classes.php:
return [
\MyVendor\MyExt\Domain\Model\Teaser::class => [
'tableName' => 'pages'
]
];
When I now request a translated page record…
$this->teaserRepository->findOneByUid(123)
…resulting object contains image from default language:
media => protectedTYPO3\CMS\Extbase\Domain\Model\FileReference prototypepersistent entity (uid=350, pid=264)
uidLocal => protected 15 (integer)
originalResource => protected NULL
uid => protected 350 (integer)
_localizedUid => protected 350 (integer)
_languageUid => protected 0 (integer)
_versionedUid => protected 350 (integer)
pid => protected 264 (integer)
But “media” has setting “allowLanguageSynchronization=true”, so I’ve expected the image from my translated page record here.
This is working for simple TCA fields like “type=input” and I’ve expected it’s working for images, too.
I’ve uploaded an extension where you can test the behaviour.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] TCA setting "allowLanguageSynchronization" for pages records not working when using extbase model Resolves: #104419 Releases: main