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