public function beforeVersionedSave()
    {
        $this->wasDirty = false;
        if ($this->isDirty && static::$createRevisionOnSave) {
            // update creation time
            $this->Created = time();
            $this->wasDirty = true;
        }
    }
public function beforeVersionedSave()
    {
        $this->wasDirty = false;
        if ($this->isDirty && static::$createRevisionOnSave) {
            // update creation time
            $this->Created = time();
            $this->wasDirty = true;
        }
    }
public function beforeVersionedSave ( ) { $ this -> wasDirty = false ; if ( $ this -> isDirty && static :: $ createRevisionOnSave ) { // update creation time $ this -> Created = time ( ) ; $ this -> wasDirty = true ; } }
Sets wasDirty, isDirty, Created for the object before save

@return void
Sets wasDirty isDirty Created for the object before save