Actions
Feature #70014
closedRemove hardcoded ObjectStorage creation in ObjectStorageConverter
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-09-22
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.6
Tags:
Complexity:
Sprint Focus:
Description
\TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter contains hardcoded ObjectStorage creation in convertFrom() method:
public function convertFrom($source, $targetType, array $convertedChildProperties = array(), \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration = NULL) { $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); ... }
It makes it impossible to use custom ObjectStorage in model without custom TypeConverter.
It makes sense to parse incoming $targetType with TypeHandlingUtility and in case it is child of ObjectStorage or ObjectStorage itself, instantiate it with ObjectManager.
Actions