ActiveEntity
or any ColdBox Proxies that require ORM, you must create an Application Mapping in the Application.cfc
like this:entityservice
which can produce virtual or base ORM entity services. Below are the injections you can use:entityservice
- Inject a global ORM serviceentityservice:{entityName}
- Inject a Virtual entity service according to entityName
ColdBox.cfc
under moduleSettings
-> cborm
structure:UniqueValidator
from the validation module into our ORM module. It is mapped into WireBox as [email protected]
so you can use in your model constraints like so: