public function revert()
    {
        $model = $this->getModel();
        unset( $model->{$model->getCreatedAtColumn()} );
        unset( $model->{$model->getUpdatedAtColumn()} );
        if (method_exists($model, 'getDeletedAtColumn')) {
            unset( $model->{$model->getDeletedAtColumn()} );
        }
        $model->save();
        return $model;
    }
public function revert()
    {
        $model = $this->getModel();
        unset( $model->{$model->getCreatedAtColumn()} );
        unset( $model->{$model->getUpdatedAtColumn()} );
        if (method_exists($model, 'getDeletedAtColumn')) {
            unset( $model->{$model->getDeletedAtColumn()} );
        }
        $model->save();
        return $model;
    }
public function revert ( ) { $ model = $ this -> getModel ( ) ; unset ( $ model -> { $ model -> getCreatedAtColumn ( ) } ) ; unset ( $ model -> { $ model -> getUpdatedAtColumn ( ) } ) ; if ( method_exists ( $ model , 'getDeletedAtColumn' ) ) { unset ( $ model -> { $ model -> getDeletedAtColumn ( ) } ) ; } $ model -> save ( ) ; return $ model ; }
Revert to the stored model version make it the current version

@return Model
Revert to the stored model version make it the current version