src/EntityQueryBuilder.php
public function fetchAll(array $parameters = [], $hydrationMode = DoctrineQuery::HYDRATE_OBJECT)
    {
        $this->appendParameters($parameters);

        return $this->getQuery()->getResult($hydrationMode);
    }
public function fetchAll(array $parameters = [], $hydrationMode = DoctrineQuery::HYDRATE_OBJECT)
    {
        $this->appendParameters($parameters);

        return $this->getQuery()->getResult($hydrationMode);
    }
Fetch all entities.

@param array $parameters
@param int   $hydrationMode

@return array