When you declare a module and you define a
modelsfolder 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's
mapDirectory()to map the entire
modelsdirectory for you.
Let's say you have a module called
OrderService.cfcinside of the
modelsfolder. That object will have a WireBox id of
Hint You can alter this behavior by setting the
this.autoMapModelsconfiguration setting to false. You can also alter the namespace used via the