Miscellaneous
automaticValidations()
Signature
Section titled “Signature”automaticValidations() — returns any
Description
Section titled “Description”Whether or not to enable default validations for this model.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
value | boolean | yes | — | Set to true or false. |
Examples
Section titled “Examples”// In `models/User.cfc`, disable automatic validations. In this case, automatic validations are probably enabled globally, but we want to disable just for this model. <cffunction name="init"> <cfscript> automaticValidations(false); </cfscript> </cffunction>