assign

suspend fun <C : Any> assign(model: AggregateModel<*>, command: Command<C>): Command<C>

command, a command of model, with its aggregate id assigned when it names none (me.ahoo.wow.api.aggregate.AggregateRef.isAssigned); fails for a command that does not create its aggregate. An aggregate whose id is its owner's takes the command's owner, and fails for a command with none.