Project

General

Profile

Actions

Bug #73726

closed

Extbase ObjectStorage Persistence / TCE Main Inline Handling inconsistent

Added by Philipp Wrann over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2016-02-28
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

extbase-wrong-uid.png (102 KB) extbase-wrong-uid.png Philipp Wrann, 2016-02-28 18:06
Actions #1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46996

Actions #2

Updated by Gerrit Code Review almost 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46996

Actions #3

Updated by Anonymous over 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF