Back
protectedProperties()
Use this method to specify which properties cannot be set through mass assignment.
// In `models/User.cfc`, `firstName` and `lastName` cannot be changed through mass assignment operations like `updateAll()`.
function config(){
protectedProperties("firstName,lastName");
}
Copied!