src/Sulu/Bundle/Sales/OrderBundle/Order/OrderManager.php
protected function createMediaForSupplierItems($items, $locale)
    {
        foreach ($items as $item) {
            if (isset($item['items']) && count($item['items'] > 0)) {
                $this->createMediaForItems($item['items'], $locale);
            }
        }
    }
protected function createMediaForSupplierItems($items, $locale)
    {
        foreach ($items as $item) {
            if (isset($item['items']) && count($item['items'] > 0)) {
                $this->createMediaForItems($item['items'], $locale);
            }
        }
    }
protected function createMediaForSupplierItems ( $ items , $ locale ) { foreach ( $ items as $ item ) { if ( isset ( $ item [ 'items' ] ) && count ( $ item [ 'items' ] > 0 ) ) { $ this -> createMediaForItems ( $ item [ 'items' ] , $ locale ) ; } } }
Creates correct media-api for supplier-items array

@param array $items
@param string $locale
Creates correct media - api for supplier - items array