/** * @return DomainEvent[] */ public function getAll() { $events = []; /** @var $storedEvent StoredEvent */ $storedEvents = $this->repository->findAll(); foreach ($storedEvents as $storedEvent) { $events[] = $storedEvent->getEvent(); } return $events; }
/** * (non-PHPDoc) * @see Rhapsody\SocialBundle\Doctrine\PostManagerInterface::findAll() */ public function findAll($map = false) { $results = $this->repository->findAll(); return !$map ? array_values($map) : $map; }
/** * @Rest\View * * @return array */ public function cgetAction() { return $this->repository->findAll(); }
public function findAll() { return $this->repo->findAll(); }
/** * @return AggregateRoot[] */ public function getAll() { return $this->documentRepository->findAll(); }
/** * @return array */ public function getAllSchedules() { return $this->repository->findAll(); }
/** * Returns total number of pages in the sitemap * * @return int */ public function getTotalPages() { return ceil($this->repository->findAll()->count() / self::PAGE_LIMIT); }