Back
reload()
Reloads the property values of this object from the database.
// Get an object, call a method on it that could potentially change values, and then reload the values from the database employee = model("employee").findByKey(params.key); employee.someCallThatChangesValuesInTheDatabase(); employee.reload();
Copied!