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;
    }
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;
    }
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 ; }
Forget loaded data.

@return $this
Forget loaded data .