Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function ENTITYSAVE

Saves or updates data of the entity and all related entities to the database.
EntitySave(entity, [forceinsert])

Example

entitysave(object entity,[boolean forceInsert]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
entity object  Yes Name of the entity that must be saved in the database.  
forceInsert boolean  No If true, then Lucee always tries to insert the entity as a new record.