findAll() public method

Finds all documents in the repository.
public findAll ( ) : array
return array
示例#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;
 }
示例#3
0
 /**
  * @Rest\View
  *
  * @return array
  */
 public function cgetAction()
 {
     return $this->repository->findAll();
 }
示例#4
0
 public function findAll()
 {
     return $this->repo->findAll();
 }
 /**
  * @return AggregateRoot[]
  */
 public function getAll()
 {
     return $this->documentRepository->findAll();
 }
示例#6
0
 /**
  * @return array
  */
 public function getAllSchedules()
 {
     return $this->repository->findAll();
 }
示例#7
0
 /**
  * Returns total number of pages in the sitemap
  *
  * @return int
  */
 public function getTotalPages()
 {
     return ceil($this->repository->findAll()->count() / self::PAGE_LIMIT);
 }