[Flow] How to add new child objects from a form

Axel Wüstemann awu at qbus.de
Fri Jan 17 18:31:40 CET 2014


Thank you Christan, this works:

$configuration->forProperty('deposits.*')
               ->allowAllProperties()
                ->setTypeConverterOption(
 
'TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter',
 
\TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED,
                             TRUE
               );

Axel

Am 17.01.2014 17:49, schrieb Christian Huppert:
> Hi Axel,
>
> I am beginner but you could give a try to the following:
>
> Before your updateAction you could do the following:
>
>
> protected function initializeUpdateAction() {
>
>
>
> $depositConfiguration = $this->arguments->getArgument('deposit')->getPropertyMappingConfiguration();
> $depositConfiguration->allowAllProperties();
>
> $depositConfiguration->setTypeConverterOption(
>                  'TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter',
>                  \TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED,
>                  TRUE
>          );
>
>
>
>
> }
>
> I have it from:
> - http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/PropertyMapping.html#configuring-the-conversion-process (section "Property Mapping Configuration in the MVC stack"
> and
>
> http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartIII/PropertyMapping.html#security-considerations
>


More information about the Flow mailing list