#61628PropertyMappingConfiguration for ObjectStorages / Arrays
Description
Hi,
i want to create different type of objects from fluid within a form. Within the initializeCreateAction() i do this here:
$propertyMappingConfiguration->forProperty('newsletters.*')->allowAllProperties();
$propertyMappingConfiguration->forProperty('newsletters.*')->setTypeConverterOption('TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter',\TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_OVERRIDE_TARGET_TYPE_ALLOWED,TRUE);
In the view i write this code:
<f:for each="{newsletters}" as="newsletter">
<f:form.hidden property="newsletters.{newsletter.listId}.__type" value="{newsletter.type}" />
<f:form.checkbox id="newsletter-{newsletter.listId}" property="newsletters.{newsletter.listId}.listId" value="{newsletter.listId}" />
<label for="newsletter-{newsletter.listId}">Sign up to our newsletter?</label>
</f:for>
The Problem is, that the propertyMapping wildcard doesnt work for arrays!?
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] PropertyMappingConfiguration for ObjectStorages / Arrays Resolves: #61628 Releases: main