Name | Type | Required | Default | Hint |
name | string | true | Name of the event handler to create without the .cfc. For packages, specify name as 'myPackage/myModel' | |
directory | string | false | models | The base directory to create your event handler in and creates the directory if it does not exist. |
open | boolean | false | false | Open the file once generated |
Create a new ORM Event Handler in an existing ColdBox application. Make sure you are running this command in the root
of your app for it to find the correct folder.
coldbox create orm-event-handler MyEventHandler --open