findAll() public méthode

Finds all documents in the repository.
public findAll ( ) : array
Résultat array
Exemple #1
0
 /**
  * @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();
 }
Exemple #7
0
 /**
  * Returns total number of pages in the sitemap
  *
  * @return int
  */
 public function getTotalPages()
 {
     return ceil($this->repository->findAll()->count() / self::PAGE_LIMIT);
 }