src/Sulu/Bundle/Sales/OrderBundle/Widgets/FlowOfDocuments.php
protected function fetchDocumentData($options)
    {
        $documents = $this->dependencyManager->getDocuments($options['orderId'], $options['locale']);
        if (!empty($documents)) {
            /* @var SalesDocument $document */
            foreach ($documents as $document) {
                $data = $document->getSalesDocumentData();
                parent::addEntry(
                    $data['id'],
                    $data['number'],
                    $data['type'],
                    $data['date'],
                    parent::getRoute($data['id'], $data['type'], 'details'),
                    $data['pdfBaseUrl']
                );
            }
        }
    }
protected function fetchDocumentData($options)
    {
        $documents = $this->dependencyManager->getDocuments($options['orderId'], $options['locale']);
        if (!empty($documents)) {
            /* @var SalesDocument $document */
            foreach ($documents as $document) {
                $data = $document->getSalesDocumentData();
                parent::addEntry(
                    $data['id'],
                    $data['number'],
                    $data['type'],
                    $data['date'],
                    parent::getRoute($data['id'], $data['type'], 'details'),
                    $data['pdfBaseUrl']
                );
            }
        }
    }
protected function fetchDocumentData ( $ options ) { $ documents = $ this -> dependencyManager -> getDocuments ( $ options [ 'orderId' ] , $ options [ 'locale' ] ) ; if ( ! empty ( $ documents ) ) { /* @var SalesDocument $document */ foreach ( $ documents as $ document ) { $ data = $ document -> getSalesDocumentData ( ) ; parent :: addEntry ( $ data [ 'id' ] , $ data [ 'number' ] , $ data [ 'type' ] , $ data [ 'date' ] , parent :: getRoute ( $ data [ 'id' ] , $ data [ 'type' ] , 'details' ) , $ data [ 'pdfBaseUrl' ] ) ; } } }
Retrieves document data for a specific order and adds it to the entries

@param $options
@throws \Sulu\Bundle\AdminBundle\Widgets\WidgetParameterException
Retrieves document data for a specific order and adds it to the entries