TransactionSetSavePoint()
Saves a specific state within a transaction
When ORM code ran in the transaction, the ORM session is flushed so pending changes are covered by the savepoint. After a rollback to the savepoint with TransactionRollback() the ORM session is cleared and entities that were loaded or saved earlier in the transaction become detached.
TransactionSetSavePoint( savepoint=string );
Returns: void
| Argument | Description |
|---|---|
|
savepoint
string,
optional
|
edit
name of the savepoint to set, this argument is optional, if set it creates an unnamed savepoint. |
Examples
There are currently no examples for this function 30,481ms WARN No examples for function transactionSetsavepointSee also
- ORM
- Queries / Database
- TransactionCommit()
- TransactionRollback()
- <cftransaction>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)