protected function findByRequestParameter(Request $request)
 {
     return $this->repository->find((int) $request->attributes->get($this->requestAttributeName));
 }
 public function getProductStatusBySymbol(string $symbol) : ProductStatusInterface
 {
     return $this->repository->findOneBy(['symbol' => $symbol]);
 }
Exemplo n.º 3
0
 private function getEntities(int $iteration) : array
 {
     return $this->repository->findBy([], null, $this->batchSize, $iteration * $this->batchSize);
 }
Exemplo n.º 4
0
 public function getEntitiesCollection(Criteria $criteria) : Collection
 {
     $result = $this->repository->findBy([], null, $criteria->getMaxResults(), $criteria->getFirstResult());
     return new ArrayCollection($result);
 }