Skip to content

Model Object

reload()

reload() — returns void

Available in: model Category: Miscellaneous Functions

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();