Project

General

Profile

Actions

Bug #61628

open

PropertyMappingConfiguration for ObjectStorages / Arrays

Added by André Wuttig over 9 years ago. Updated over 8 years ago.

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

0%

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

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!?


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #75231: PropertyMapper fails for Demand-Object like objectsNew2016-03-22

Actions
Actions

Also available in: Atom PDF