protected function removeItemAddressesThatAreEqualToOrderAddress($order)
    {
        $deliveryAddressId = $order->getDeliveryAddress()->getContactAddress()->getId();
        foreach ($order->getItems() as $item) {
            $itemEntity = $item->getEntity();
            $this->removeOrderAddressIfContactAddressIdIsEqualTo($itemEntity, $deliveryAddressId);
        }
    }
protected function removeItemAddressesThatAreEqualToOrderAddress($order)
    {
        $deliveryAddressId = $order->getDeliveryAddress()->getContactAddress()->getId();
        foreach ($order->getItems() as $item) {
            $itemEntity = $item->getEntity();
            $this->removeOrderAddressIfContactAddressIdIsEqualTo($itemEntity, $deliveryAddressId);
        }
    }
protected function removeItemAddressesThatAreEqualToOrderAddress ( $ order ) { $ deliveryAddressId = $ order -> getDeliveryAddress ( ) -> getContactAddress ( ) -> getId ( ) ; foreach ( $ order -> getItems ( ) as $ item ) { $ itemEntity = $ item -> getEntity ( ) ; $ this -> removeOrderAddressIfContactAddressIdIsEqualTo ( $ itemEntity , $ deliveryAddressId ) ; } }
Remove all item delivery-addresses that are the same as the default
delivery address of the order

@param ApiOrderInterface $order
Remove all item delivery - addresses that are the same as the default delivery address of the order