models
folder then the framework automatically register all models in that folder for you using a namespace of @moduleName
. This means that all models are registered according to their CFC name plus the namespace.Info Internally, ColdBox uses WireBox'smapDirectory()
to map the entiremodels
directory for you.
store
and a OrderService.cfc
inside of the models
folder. That object will have a WireBox id of [email protected]
.Hint You can alter this behavior by setting thethis.autoMapModels
configuration setting to false. You can also alter the namespace used via thethis.modelNamespace
configuration property.