accessibleProperties()
Description
Use this method to specify which properties can be set through mass assignment.
Function Syntax
accessibleProperties([ properties ])
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
properties |
string |
No | |
Property name (or list of property names) that are allowed to be altered through mass assignment. |
Examples
<!--- In `models/User.cfc`, only `isActive` can be set through mass assignment operations like `updateAll()` --->
<cffunction name="init">
<cfset accessibleProperties("isActive")>
</cffunction>
