Back

reload()

Reloads the property values of this object from the database.

Name Type Required Default Description
// 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!