Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created July 28, 2010 17:39
Show Gist options
  • Save ejhayes/495485 to your computer and use it in GitHub Desktop.
Save ejhayes/495485 to your computer and use it in GitHub Desktop.
component {
public function setupRequest() {
if(structKeyExists(url, "init")) {
setupApplication();
// remove the generated xml files since they don't remove themselves
hibernateFiles = directoryList(ExpandPath(this.ormsettings.cfclocation),false,"path","*.hbmxml");
for(i=1;i LTE arrayLen(hibernateFiles); i++){
FileDelete(hibernateFiles[i]);
}
// now reload the orm
ormReload();
//location(url=".",addToken=false);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment