Entity/EntityRepository.php
public function getEntities(array $options = [], $hydrationMode = AbstractQuery::HYDRATE_OBJECT)
    {
        $options = EntityRepositoryOptionsResolver::createAndResolve($options);
        return $this->getQueryBuilder($options['filters'], $options['sorting'])
            ->getQuery()
            ->execute(null, $hydrationMode);
    }
public function getEntities(array $options = [], $hydrationMode = AbstractQuery::HYDRATE_OBJECT)
    {
        $options = EntityRepositoryOptionsResolver::createAndResolve($options);
        return $this->getQueryBuilder($options['filters'], $options['sorting'])
            ->getQuery()
            ->execute(null, $hydrationMode);
    }
public function getEntities ( array $ options = [ ] , $ hydrationMode = AbstractQuery :: HYDRATE_OBJECT ) { $ options = EntityRepositoryOptionsResolver :: createAndResolve ( $ options ) ; return $ this -> getQueryBuilder ( $ options [ 'filters' ] , $ options [ 'sorting' ] ) -> getQuery ( ) -> execute ( null , $ hydrationMode ) ; }
Returns a list of all the entities.

@param array $options
@param integer $hydrationMode
@return array
Returns a list of all the entities .