コード例 #1
0
ファイル: AllInOne.php プロジェクト: aretecode/Marriage
 /**
  * A new invite aggregate root is created and added to the repository.
  */
 protected function handleCreateMarriageCommand(CreateMarriageCommand $command)
 {
     $marriage = Marriage::createMarriage($command->marriageId, $command->partnerIds, $command->occurredOn);
     $this->repository->save($marriage);
 }