yii\db\DataReader::rewind PHP Method

rewind() public method

This method is required by the interface [[\Iterator]].
public rewind ( )
    public function rewind()
    {
        if ($this->_index < 0) {
            $this->_row = $this->_statement->fetch();
            $this->_index = 0;
        } else {
            throw new InvalidCallException('DataReader cannot rewind. It is a forward-only reader.');
        }
    }