Return to v2.0 docs

reload()


Model Object Miscellaneous Functions void model


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

Related Functions

Miscellaneous Functions