bridge/doctrine-orm/lib/OrmAgent.php
public function query(Query $query): \Traversable
    {
        $queryBuilder = $this->getQueryBuilder($query);

        return new ArrayCollection(
            $queryBuilder->getQuery()->execute()
        );
    }
public function query(Query $query): \Traversable
    {
        $queryBuilder = $this->getQueryBuilder($query);

        return new ArrayCollection(
            $queryBuilder->getQuery()->execute()
        );
    }
{@inheritdoc}