Sonata\Exporter\Test\Source\PropelCollectionSourceIteratorTest::extract PHP Method

extract() protected method

protected extract ( PropelCollection $collection, array $fields )
$collection PropelCollection
$fields array
    protected function extract(\PropelCollection $collection, array $fields)
    {
        $iterator = new PropelCollectionSourceIterator($collection, $fields);
        return iterator_to_array($iterator);
    }