private function reloadResults() { if ($this->lastId !== null) { if ($this->filterIdOperation === null) { $this->filterIdOperation = $this->fetcher->filterByGreaterThanId($this->lastId); } else { $this->filterIdOperation->setValue($this->lastId); } } $this->results = $this->fetchable->getByFetcher($this->fetcher)->getResultSet(); if (!$this->fetcher->hasResults()) { $this->ended = true; $this->currentKey = null; } else { if ($this->fetcher->count() !== $this->fetcher->getNbByPage()) { $this->ended = true; } $this->currentKey = key($this->results); /** @var VO $vo */ $vo = current($this->results); if ($vo !== false) { $this->lastId = $vo->getId(); } } }