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