lib/Doctrine/ORM/Query.php
public function iterate($parameters = null, $hydrationMode = self::HYDRATE_OBJECT)
    {
        $this->setHint(self::HINT_INTERNAL_ITERATION, true);

        return parent::iterate($parameters, $hydrationMode);
    }
public function iterate($parameters = null, $hydrationMode = self::HYDRATE_OBJECT)
    {
        $this->setHint(self::HINT_INTERNAL_ITERATION, true);

        return parent::iterate($parameters, $hydrationMode);
    }
public function iterate ( $ parameters = null , $ hydrationMode = self :: HYDRATE_OBJECT ) { $ this -> setHint ( self :: HINT_INTERNAL_ITERATION , true ) ; return parent :: iterate ( $ parameters , $ hydrationMode ) ; }
Executes the query and returns an IterableResult that can be used to incrementally
iterated over the result.

@param ArrayCollection|array|Parameter[]|mixed[]|null $parameters    The query parameters.
@param int                                            $hydrationMode The hydration mode to use.

@return IterableResult
Executes the query and returns an IterableResult that can be used to incrementally iterated over the result .