[TYPO3-german] Extbase PropertyMapper: allowAllProperties und trotzdem Fehler
Johannes C. Schulz - EnzephaloN IT-Solutions
info at enzephalon.de
Tue Jul 8 11:39:46 CEST 2014
Hallo
Ich habe heute mein bestehendes Domänenmodel um ein Property erweitert und
plötzlich bekomme ich den Fehler Exception while property mapping at
property path "contact":It is not allowed to map property "position". Das
kann aber garnicht sein, denn in meinem Controller habe ich eine Methode
initializeCreateAction mit folgendem Code:
/**
* @return void
*/
public function initializeCreateAction(){
$accreditationMappingConfiguration =
$this->arguments->getArgument('newAccreditation')->getPropertyMappingConfigu
ration();
if (TYPO3_MODE === 'BE'){
$accreditationMappingConfiguration->allowAllProperties();
}else{
$accreditationMappingConfiguration->allowAllPropertiesExcept('status','user'
);
}
$accreditationMappingConfiguration->setTypeConverterOption('TYPO3\CMS\Extbas
e\Property\TypeConverter\PersistentObjectConverter',
\TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter::CONFIGU
RATION_CREATION_ALLOWED, TRUE);
}
contact ist ein Property von newAccreditation.
Wo kann der Fehler noch herkommen? Wie gesagt, alle anderen
contact-Properties funktionieren anstandslos.
Johannes
More information about the TYPO3-german
mailing list