« Previous | Next » 

Revision faaee920

IDfaaee920c10087dad46980131ea01f41d40071bd
Parent 4fcbba81

Added by Christopher Hlubek about 9 years ago

[FEATURE] Allow mapping of indexed property names with placeholder

For multi-valued property types (Doctrine\Common\Collections\Collection or
array) the property mapper uses indexes as property names. To match the
property mapping configuration for any index, the path syntax supports an
asterisk as a placeholder:

$propertyMappingConfiguration
->forProperty('items.*')
->setTypeConverterOption(
'TYPO3\FLOW3\Property\TypeConverter\PersistentObjectConverter',
\TYPO3\FLOW3\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED,
TRUE
);

This also works recursively, as in 'items.*.author'.

Change-Id: I2fa8802ed07d341d5e5bd79bfa5df05244679fe4
Resolves: #37436
Releases: 1.1, 1.2

  • added
  • modified
  • copied
  • renamed
  • deleted