public function fetchAll() { return iterator_to_array($this->getIterator()); }
/** * Get the data * @return array */ public function getData() { /** * Paginator is better if the query uses ManyToMany associations */ return $this->data ?: $this->data_source->fetchAll(); }