Exemplo n.º 1
0
 private function getEntities(int $iteration) : array
 {
     return $this->repository->findBy([], null, $this->batchSize, $iteration * $this->batchSize);
 }
Exemplo n.º 2
0
 public function getEntitiesCollection(Criteria $criteria) : Collection
 {
     $result = $this->repository->findBy([], null, $criteria->getMaxResults(), $criteria->getFirstResult());
     return new ArrayCollection($result);
 }