Skip to content

Commit ec0c21f

Browse files
committed
Add warning to documentation of commitInSeparateDatabaseTransaction
1 parent 95fe23f commit ec0c21f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/en/docs/appstore/use-content/platform-supported-content/modules/community-commons-function-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The module contains one constant: `CommunityCommons.MergeMultiplePdfs_MaxAtOnce`
8888
### ORM
8989

9090
* <a id="clone"></a>`Clone` – This clones the objects.
91-
* `commitInSeparateDatabaseTransaction` – This function commits an object in a seperate context and transaction, making sure it gets persisted in the database (regarding which exception happens after invocation).
91+
* `commitInSeparateDatabaseTransaction` – This function commits an object in a seperate context and transaction, making sure it gets persisted in the database (regarding which exception happens after invocation). Please note that this action is prone to deadlock. For example if you commit an object in one transaction and then use this action to commit the same object in a separate transaction. We do not recommend the use of this action.
9292
* `commitWithoutEvents` – This commits an object but without events.
9393
* `copyAttributes` – This copies all common primitive attributes from source to target, which are not necessarily of the same type. This is useful to, for example, translate database object into view objects.
9494
* <a id="deepclone"></a>`DeepClone` – This clones the objects, their associations, and their referred objects. For more information, see the [Limitations](#limitations) section below.

0 commit comments

Comments
 (0)