Project

General

Profile

Actions

Bug #105319

open

Extbase domain model combined identity for localized entries

Added by ondro no-lastname-given about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2024-10-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
extbase, property mapper
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

Hello,

After the upgrade to TYPO3 v12 we started receiwing following error after property mapping back to the object from the f:form:

Exception while property mapping at property path "idea": The identity property "16901_16902" is no UID.

It looks it changed in the core https://github.com/TYPO3/typo3/blob/v12.4.22/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php#L137
Following piece of code cause the error: https://github.com/TYPO3/typo3/blob/v12.4.22/typo3/sysext/extbase/Classes/Property/TypeConverter/PersistentObjectConverter.php#L228

Combined identifier is created by Form VH from here: https://github.com/TYPO3/typo3/blob/v12.4.22/typo3/sysext/fluid/Classes/ViewHelpers/Form/AbstractFormFieldViewHelper.php#L198

So any form input like this:

<f:form.hidden value="{idea}" property="idea" />

results in this:

<input type="hidden" name="tx_ext_plugin[idea][__identity]" value="16901_16902">

same goes for checkboxes, etc ...

In the default language, it's ok, the problem is only for localized records


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #59992: Persistence session doesn't take overlays into accountClosed2014-06-30

Actions
Actions #1

Updated by Garvin Hicking about 1 month ago

  • Related to Bug #59992: Persistence session doesn't take overlays into account added
Actions #2

Updated by Garvin Hicking about 1 month ago

  • Tags changed from extbae, property mapper to extbase, property mapper
  • Is Regression set to Yes
Actions

Also available in: Atom PDF