original_string: public function unload()
      {
          if ($this->_save_later) {
              $this->_save_later = false;
              $this->saveAndUnload();
          }
          if ($this->loaded()) {
              $this->hook('beforeUnload');
          }
          $this->data = $this->dirty = array();
          $this->id = null;
          $this->hook('afterUnload');
  
          return $this;
      }
code: public function unload()
      {
          if ($this->_save_later) {
              $this->_save_later = false;
              $this->saveAndUnload();
          }
          if ($this->loaded()) {
              $this->hook('beforeUnload');
          }
          $this->data = $this->dirty = array();
          $this->id = null;
          $this->hook('afterUnload');
  
          return $this;
      }
code_tokens: public function unload ( ) { if ( $ this -> _save_later ) { $ this -> _save_later = false ; $ this -> saveAndUnload ( ) ; } if ( $ this -> loaded ( ) ) { $ this -> hook ( 'beforeUnload' ) ; } $ this -> data = $ this -> dirty = array ( ) ; $ this -> id = null ; $ this -> hook ( 'afterUnload' ) ; return $ this ; }
docstring: Forget loaded data.
  
  @return $this
docstring_tokens: Forget loaded data .