Model Object
reload()
Signature
Section titled “Signature”reload() — returns void
Available in: model
Category: Miscellaneous Functions
Description
Section titled “Description”Reloads the property values of this object from the database.
Examples
Section titled “Examples”// 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();