Bug #73726
closedExtbase ObjectStorage Persistence / TCE Main Inline Handling inconsistent
100%
Description
When persisting an extbase object the KeyColumn (most likely uid_foreign) gets updated with $parentObject->getUid(). That - as we know - returns the uid of the original language content.
But when creating inline relations or translating such via TCE main the uid of the localized rows is taken instead.
That behaviour is really weird.
I suggest to adjust extbase to use the "_localizedUid" property when writing inline relations.
The issue can be seen in TYPO3\CMS\Extbsae\Persistence\Generic\Backend::attachObjectToParentObjectRelationHasMany
at line 601 (TYPO3 7.6 LTS) - see attached screenshot
That results in wrong rendering in the backend if rows have been created on translated entities via extbase.
In our case this is really inconvinient because we do heavy importing stuff via extbase but the data is not shown correctly in TCEMain.
This could also be realted to many other extbase/persistence issues.
Files