Nextras\Orm\Mapper\Dbal\DbalCollection::fetchAll PHP Method

fetchAll() public method

public fetchAll ( )
    public function fetchAll()
    {
        return iterator_to_array($this->getIterator());
    }

Usage Example

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