Back
setProperties()
Allows you to set all the properties of an object at once by passing in a structure with keys matching the property names.
// Update the properties of the object with the params struct containing the values of a form post user = model("user").findByKey(1); user.setProperties(params.user);
Copied!