protected function versionablePreSave()
    {
        if ($this->versioningEnabled === true) {
            $this->versionableDirtyData = $this->getDirty();
            $this->updating             = $this->exists;
        }
    }
protected function versionablePreSave()
    {
        if ($this->versioningEnabled === true) {
            $this->versionableDirtyData = $this->getDirty();
            $this->updating             = $this->exists;
        }
    }
protected function versionablePreSave ( ) { if ( $ this -> versioningEnabled === true ) { $ this -> versionableDirtyData = $ this -> getDirty ( ) ; $ this -> updating = $ this -> exists ; } }
Pre save hook to determine if versioning is enabled and if we're updating
the model
@return void
Pre save hook to determine if versioning is enabled and if we re updating the model