coldbox create orm-crud

Parameters:
Name Type Required Default Hint
entity string true The name and dot location path of the entity to create the CRUD for, starting from the root of your application. For example: models.Contact, models.security.User
pluralName string false The plural name of the entity. Used for display purposes. Defaults to 'entityName' + s
handlersDirectory string false handlers The location of the handlers. Defaults to 'handlers'
viewsDirectory string false views The location of the views. Defaults to 'views'
tests boolean false true Generate the BDD tests for this CRUD operation
testsDirectory string false tests/specs/integration Your integration tests directory. Only used if tests is true

Command Usage

Generate some CRUD goodness out of an ORM entity.

Make sure you are running this command in the root of your app for it to find the correct folder.

coldbox create crud models.Contact