If the query type is not expected to return an Iterator,
BadMethodCallException will be thrown before executing the query.
Otherwise, the query will be executed and UnexpectedValueException will
be thrown if {@link Query::execute()} does not return an Iterator.
public getIterator ( ) : Doctrine\MongoDB\Iterator | ||
return | Doctrine\MongoDB\Iterator |