[Flow] Property Mapping configuration for Array colleciton of objects

Bastian Waidelich bastian at typo3.org
Wed Jul 2 14:40:14 CEST 2014


Rocky wrote:

BTW: This is how that post looks to me: 
https://www.evernote.com/shard/s17/sh/18d06a8c-e7fd-440a-afdf-7a4df43f8bd6/4f035d71335eddb056719ae06137ac57 
;)

But I think I got your main point:

>  $this->arguments["newApplicant"]
> ->getPropertyMappingConfiguration()
> ->forProperty('families.*.age.birthDate)
> ->setTypeConverterOption('TYPO3\Flow\Property\TypeConverter\DateTimeConverter',
> \TYPO3\Flow\Property\TypeConverter\DateTimeConverter::CONFIGURATION_DATE_FORMAT,
> 'Y-m-d');

Is ignored, correct?

IIRC the placeholder syntax (*) is only supported for allowed 
properties, you can't set TypeConverterOptions recursively but have to 
use the index: https://gist.github.com/bwaidelich/880a69cf9ceef75c9b38

BTW: The same is true if you want to use multiple placeholders like 
"foo.*.bar.*" - that doesn't work (yet).

-- 
Bastian Waidelich


More information about the Flow mailing list