Back
updateProperty()
Updates a single property
and saves the record without going through the normal validation procedure.
This is especially useful for boolean flags on existing records.
// Sets the `new` property to `1` through updateProperty()
product = model("product").findByKey(56);
product.updateProperty("new", 1);
Copied!