/** * 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); }