Bug #66064
openUse configurationBuilder for generating propertyMappingConfiguration in controller arguments
0%
Description
Currently the propertyMappingConfiguration in "TYPO3\CMS\Extbase\Mvc\Controller\Argument" gets injected and thus will be empty.
I guess it would make sense to use "TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationBuilder" to generate a new propertyMappingConfiguration having sane defaults. Or is the ConfigurationBuilder just intended for property mapping internally in a domain object and not for domain models being passed as controller arguments?
Updated by Bernhard Kraft over 9 years ago
At least the the configurationBuilder is used in "TYPO3\CMS\Extbase\Property\PropertyMapper" when calling ->convert() with a NULL value for property configuration.
The "TYPO3\CMS\Extbase\Mvc\Controller\Argument" class creates an propertyMappingConfiguration by injection and thus will pass a non-null value which is not enriched with the default settings. So my assumption was that Mvc\Controller\Argument should use the propertyMappingConfigurationBuilder.
Updated by Mathias Schreiber about 9 years ago
- Target version deleted (
next-patchlevel)