Flow3 の Security Account/Party モジュールに問題があります。
パーティとして個人の姓名を変更しようとしました:
$person = $account->getParty();
$name = $person->getName();
$name->setFirstName($firstName);
$name->setLastName($lastName);
$this->accountRepository->update($account);
$this->partyRepository->update($person);
$account は有効な\TYPO3\FLOW3\Security\Account
オブジェクトです。
このコードを使用して $firstName と $lastname を変更すると、flow3 はロールバックを実行します。
回避策を見つけました:
$personName = new \TYPO3\Party\Domain\Model\PersonName('', $firstName,'', $lastName);
$person->setName($personName);
これは正しく動作しますが、なぜですか??