Our active entity object will also give you access to our validation engine by giving your ORM entities the following functions:
Important In order for validation to work, WireBox ORM entity injection must be enabled first!
ColdBox ORM Entity Injection
WireBox Standalone ORM Entity Injection
This makes it really easy for you to validate your ORM entities.
Sample:
Handlers Sample:
Please refer to the ORM:BaseORMService for all the cool methods and functionality you can use with Active Entity. Like always, refer to the latest CFC Docs for methods and arguments.