Skip to content

Miscellaneous

accessibleProperties()

accessibleProperties() — returns any

Use this method to specify which properties can be set through mass assignment.

NameTypeRequiredDefaultDescription
propertiesstringyesProperty name (or list of property names) that are allowed to be altered through mass assignment.
accessibleProperties([ properties ]) <!--- In `models/User.cfc`, only `isActive` can be set through mass assignment operations like `updateAll()` --->
<cffunction name="init">
    <cfset accessibleProperties("isActive")>
</cffunction>