public function initializeUpdateAction() { parent::initializeUpdateAction(); /** @var \TYPO3\Flow\Mvc\Controller\Argument $argument */ $argument = $this->arguments[$this->resourceArgumentName]; $configuration = $argument->getPropertyMappingConfiguration()->forProperty('themes.*'); $configuration->setTypeConverterOption('TYPO3\\Flow\\Property\\TypeConverter\\PersistentObjectConverter', \TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED, TRUE); $configuration->allowAllProperties(TRUE); }
/** * */ public function initializeUpdateAction() { parent::initializeUpdateAction(); /** @var \TYPO3\Flow\Mvc\Controller\Argument $argument */ $argument = $this->arguments[$this->resourceArgumentName]; $configuration = $argument->getPropertyMappingConfiguration()->forProperty('participants.*'); $configuration->allowProperties('name', 'companyName', 'country', 'email', 'foodType', 'foodSpecialNeeds', 'tshirtType', 'tshirtSize', 'newcomer', 'yearsExperience', 'roomMates'); $configuration->skipUnknownProperties(); $configuration->setTypeConverterOption('TYPO3\\Flow\\Property\\TypeConverter\\PersistentObjectConverter', \TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED, TRUE); $configuration = $argument->getPropertyMappingConfiguration()->forProperty('participants.*.roomMates.*'); $configuration->allowProperties('name'); $configuration->skipUnknownProperties(); $configuration->setTypeConverterOption('TYPO3\\Flow\\Property\\TypeConverter\\PersistentObjectConverter', \TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_MODIFICATION_ALLOWED, TRUE); $configuration = $argument->getPropertyMappingConfiguration()->forProperty('billingAddress'); $configuration->allowAllProperties(); $configuration->setTypeConverterOption('TYPO3\\Flow\\Property\\TypeConverter\\PersistentObjectConverter', \TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, TRUE); }