Skip to content

Miscellaneous

automaticValidations()

automaticValidations() — returns any

Whether or not to enable default validations for this model.

NameTypeRequiredDefaultDescription
valuebooleanyesSet to true or false.
// 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>