Issues

ZF2-152: Zend\Db\TableAbstractRowset::offsetGet references old Exception

Description

public function offsetGet($offset)
{
    $offset = (int) $offset;
    if ($offset < 0 || $offset >= $this->_count) {
        require_once 'Zend/Db/Table/Rowset/Exception.php';
        throw new Zend_Db_Table_Rowset_Exception("Illegal index $offset");
    }
    $this->_pointer = $offset;

    return $this->current();
}

should be

public function offsetGet($offset)
{
    $offset = (int) $offset;
    if ($offset < 0 || $offset >= $this->_count) {
        throw new RowsetException("Illegal index $offset");
    }
    $this->_pointer = $offset;

    return $this->current();
}

Comments

Zend\Db is being refactored by ~ralph] ([here) and will be merged for beta3, replacing the existing Zend\Db code in master.