public function rewind()
    {
        if ($this->_index == 0) {
            return;
        }

        if (!$this->_useBuffering) {
            $msg = 'You cannot rewind an un-buffered ResultSet. Use Query::bufferResults() to get a buffered ResultSet.';
            throw new Exception($msg);
        }

        $this->_index = 0;
    }
public function rewind()
    {
        if ($this->_index == 0) {
            return;
        }

        if (!$this->_useBuffering) {
            $msg = 'You cannot rewind an un-buffered ResultSet. Use Query::bufferResults() to get a buffered ResultSet.';
            throw new Exception($msg);
        }

        $this->_index = 0;
    }
public function rewind ( ) { if ( $ this -> _index == 0 ) { return ; } if ( ! $ this -> _useBuffering ) { $ msg = 'You cannot rewind an un-buffered ResultSet. Use Query::bufferResults() to get a buffered ResultSet.' ; throw new Exception ( $ msg ) ; } $ this -> _index = 0 ; }
Rewinds a ResultSet.

Part of Iterator interface.

@throws \Cake\Database\Exception
@return void
Rewinds a ResultSet .