I have a problem in the Security Account/Party Module of Flow3.
I've tried to change the first and last name of a Person as Party:
$person = $account->getParty();
$name = $person->getName();
$name->setFirstName($firstName);
$name->setLastName($lastName);
$this->accountRepository->update($account);
$this->partyRepository->update($person);
$account is a valid \TYPO3\FLOW3\Security\Account
Object.
When using this Code and changing $firstName and $lastname, flow3 is doing a rollback.
I found a workaround:
$personName = new \TYPO3\Party\Domain\Model\PersonName('', $firstName,'', $lastName);
$person->setName($personName);
This works correctly, but why ??