src/xPDO/xPDOIterator.php
protected function fetch() {
        $row = $this->stmt->fetch(\PDO::FETCH_ASSOC);
        if (is_array($row) && !empty($row)) {
            $instance = $this->xpdo->call($this->class, '_loadInstance', array(& $this->xpdo, $this->class, $this->alias, $row));
            if ($instance === null) {
                $this->fetch();
            } else {
                $this->current = $instance;
            }
        } else {
            $this->current = null;
        }
    }
protected function fetch() {
        $row = $this->stmt->fetch(\PDO::FETCH_ASSOC);
        if (is_array($row) && !empty($row)) {
            $instance = $this->xpdo->call($this->class, '_loadInstance', array(& $this->xpdo, $this->class, $this->alias, $row));
            if ($instance === null) {
                $this->fetch();
            } else {
                $this->current = $instance;
            }
        } else {
            $this->current = null;
        }
    }
protected function fetch ( ) { $ row = $ this -> stmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; if ( is_array ( $ row ) && ! empty ( $ row ) ) { $ instance = $ this -> xpdo -> call ( $ this -> class , '_loadInstance' , array ( & $ this -> xpdo , $ this -> class , $ this -> alias , $ row ) ) ; if ( $ instance === null ) { $ this -> fetch ( ) ; } else { $ this -> current = $ instance ; } } else { $ this -> current = null ; } }
Fetch the next row from the result set and set it as current.

Calls the _loadInstance() method for the specified class, so it properly
inherits behavior from xPDOObject derivatives.
Fetch the next row from the result set and set it as current .