Skip to content

Commit

Permalink
Merge pull request #8730 from jveldhuizen/patch-6
Browse files Browse the repository at this point in the history
Update committing-objects.md with information about association reinserts for autocommitted objects
  • Loading branch information
katarzyna-koltun-mx authored Nov 29, 2024
2 parents cc4fe7e + 45a257e commit eae2c53
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ An autocommit is an automatic commit from the platform, which is done to keep th
{{% alert color="warning" %}}
An autocommit is not the same as an explicit commit!

When objects are autocommitted, all changed member values, including associations, are saved in the database as well. These members are still marked as changed until these objects are explicitly committed. As a consequence, association rows for these objects are deleted and reinserted in the database when these objects are explicitly committed.

If a rollback is triggered for any reason (for example, if the user session is terminated by the user closing the browser), then autocommitted objects are deleted from the database. For more information about how Mendix handles persistable objects, see [Persistability](/refguide/persistability/).
{{% /alert %}}

Expand Down

0 comments on commit eae2c53

Please sign in to comment.