I included the validation module, I tested to check if my coldbox platform it detected it… ok
But when I try to use validateModel() inside a module I get “validateModel” method does not exists.
Also, If I check my sharedConstrains, my module’s validation sharedConstrains configuration noes not appear or are not being detected.
Hello, Did you get it to work? I’m having similar issue. Worked fine in 3.8 but now says:
Type: ValidationManager.InvalidSharedConstraint Messages: The shared constraint you requested (sharedUser) does not exist Valid constraints are:
The instructions file in the module says to have the sharedconstraints in coldbox.cfc as always but I did see moduleconfig.cfc which has a sharedconstraints structure stubbed out so I tried it there. Still getting same error.
Has the location for validation structs moved? The file moduleconfig.cfc in the validation module has two spots:
function configure(){
// Mixin our own methods on handlers, interceptors and views via the ColdBox UDF Library File setting
arrayAppend( controller.getSetting( “ApplicationHelper” ), “#moduleMapping#/models/Mixins.cfm” );