FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Orm Reload Interceptor

v1.0.2 Modules

ORM Reload Interceptor

Installation

box install orm-reload-interceptor

ORMReload with a URL flag

Just like you can add fwreinit=my_passsword to the URL to reload your ColdBox application, this module adds an interceptor that lets you specify ormreload=my_orm_reload_password.

The interceptor will work out of the box with no password set.

If you want to set the reload password, override the interceptor in your config/Coldbox.cfc settings:

interceptors = [
	{
		class="modules.orm-reload-interceptor.URLReload",
		properties = {
			reloadPassword = "my-password-here"
		}
	}
];

ORMReload on FWReinit

Installing this module will also automatically call ormReload() on a fwreinit (?fwreinit=1). You can override this setting by overriding the interceptor in your config/Coldbox.cfc settings, as well:

interceptors = [
	{
		class="modules.orm-reload-interceptor.ReloadWithFWReinit",
		properties = {
			autoReload = false
		}
	}
];

$ box install orm-reload-interceptor

No collaborators yet.
     
  • {{ getFullDate("2016-06-14T12:40:52Z") }}
  • {{ getFullDate("2016-06-14T12:41:11Z") }}
  • 3,223
  • 940