FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...
box install cborm-versioning
If the entity has a
verisioned attribute on the entities, the module will create a version of that entity. Installing registers an interceptor on all
ORMPreUpdate events to version entities.
You can also manually create a version. Doing so skips the check for the
var versioner = wirebox.createInstance( "[email protected]" ); versioner.version( myEntity );
Once you have a version, restoring it to an entity is simple:
var version = entityNew( "[email protected]" ).get( id ); var restoredEntity = version.restore(); // then if you want this to be the new current version restoredEntity.save();
If you set a numeric value (
n) for your
versioned attribute (e.g.
versioned="4" ), then the module will delete all versions in excess of
n after creating a version. By default,
cborm-versioning doesn't delete any versions.
Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.
|Version||Created||Last Update||Published By||Stable||Download|
|1.0.2||Oct 02 2017 11:27 AM||Oct 02 2017 11:27 AM||Eric Peterson (elpete)|
|1.0.1||Jun 02 2017 12:52 AM||Jun 02 2017 12:52 AM||Eric Peterson (elpete)|
|1.0.0||Mar 07 2017 08:16 AM||Mar 07 2017 08:16 AM||Eric Peterson (elpete)|