I have to update some sales order parameters
$order = $this->orderInterface->loadByIncrementId('000000009'); $order->setStatus($status) ->setState($status) ->save();
@deprecated and also if try to save, it does not save.
/** * @var OrderStatusApiInterface */ $this->orderRepositoryInterface->save($order);
It changes all the other data also is completely false.