public function theCustomerAddressedItTo(AddressInterface $address) { /** @var OrderInterface $order */ $order = $this->sharedStorage->get('order'); $order->setShippingAddress($address); $this->objectManager->flush(); }