Saves or updates data of the entity and all related entities to the database.
EntitySave(entity, [forceinsert])
Lucee Function Reference
Function ENTITYSAVE
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. |