reload()

Description

Reloads the property values of this object from the database.

Function Syntax

reload()

Parameters

None.

Examples

<!--- Get an object, call a method on it that could potentially change values and then reload the values from the database --->
<cfset anEmployee = model("employee").findByKey(params.key)>
<cfset anEmployee.someCallThatChangesValuesInTheDatabase()>
<cfset anEmployee.reload()>