# EntitySave()

Saves or updates data of the entity and all related entities to the database.

```
EntitySave( entity=object, forceInsert=boolean );
```

**Returns:** void

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| 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. |  |

# Examples

*There are currently no examples for this function.*







# Categories

[ORM](../../categories/orm.md)