[FLOW3-general] Extended Person, initializeUpdate Problem
Martin
titusmailing at googlemail.com
Fri Aug 10 13:46:27 CEST 2012
Hi Folks,
at the moment I am struggeling with an extended PersonModel
It's creation is fine but the update isn't working so far.
In "class Student extend [..]\Person" I got the field matrikel
It gets set by creation. Everything is fine by now. But when it gets to
an update I get this error:
"Exception while property mapping at property path "party": Property
"matrikel" was not found in target object of type
"\TYPO3\Party\Domain\Model\Person"
My initializeUpdateAction looks like this:
/**
* @return void
*/
public function initializeUpdateAction() {
//$this->arguments['account']->getPropertyMappingConfiguration()->setTargetTypeForSubProperty('party','\Abgabe\Domain\Model\Student');
$this->arguments['account']->getPropertyMappingConfiguration()->setTargetTypeForSubProperty('party','\TYPO3\Party\Domain\Model\Person');
$this->arguments['account']->getPropertyMappingConfiguration()->allowModificationForSubProperty('party');
$this->arguments['account']->getPropertyMappingConfiguration()->allowModificationForSubProperty('party.name');
$this->arguments['account']->getPropertyMappingConfiguration()->allowModificationForSubProperty('student');
}
In my view I get the right data with calling party.matrikel even it's
stored in student.
I was looking in the conferencePackage they have an extra class related
to nothing for storing extra Information. Is that the way?
Greetz
Martin
More information about the FLOW3-general
mailing list