Project

General

Profile

Actions

Bug #66064

open

Use configurationBuilder for generating propertyMappingConfiguration in controller arguments

Added by Bernhard Kraft over 9 years ago. Updated about 9 years ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-03-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

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?

Actions #1

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.

Actions #2

Updated by Mathias Schreiber about 9 years ago

  • Target version deleted (next-patchlevel)
Actions

Also available in: Atom PDF