lithium\data\source\database\adapter\pdo\Result::_fetch PHP Method

_fetch() protected method

Fetches the next result from the resource.
protected _fetch ( ) : array | boolean | null
return array | boolean | null Returns a key/value pair for the next result, `null` if there is none, `false` if something bad happened.
    protected function _fetch()
    {
        if (!$this->_resource instanceof PDOStatement) {
            $this->close();
            return false;
        }
        try {
            if ($result = $this->_resource->fetch(PDO::FETCH_NUM)) {
                return array($this->_iterator++, $result);
            }
        } catch (PDOException $e) {
            $this->close();
            return false;
        }
        return null;
    }
Result