Whatever message this page gives is out now! Go check it out!
EntitySave(entity, [forceinsert]) |
Parameter | Description |
entity | Name of the entity that must be saved in the database. |
forceinsert | If true, then ColdFusion always tries to insert the entity as a new record. |
<cfset employee = createObject("Employee")>
<cfset employee.setFirstName("Marcia")>
<cfset employee.setlastName("Em")>
<cfset EntitySave(employee)><cfset employee = EntityLoad('employee', 100, true)>
<cfset employee.setLastName("Em")>
<cfset EntitySave(employee)>