original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Rewinds a ResultSet.
  
  Part of Iterator interface.
  
  @throws \Cake\Database\Exception
  @return void
docstring_tokens: Rewinds a ResultSet .