/** * Lazy load data via table fetchAll() method. * * @return void */ protected function loadData() { if ($this->data === null) { $this->data = $this->_table->fetchAll($this->_where, $this->_order, $this->_count, $this->_offset); if ($this->data instanceof \Zend\Db\Table\AbstractRowset) { $this->data = $this->data->toArray(); } } }