bx-orm - Transactional ORM Sessions attempt to save/flush objects from the outer session

Description

None

Environment

Not 100% sure of the root cause, but the settings created by new above this line in the ContentBox tests will throw an error on the attempt to update the settings item created when the site was saved. The seem to be performing an update query within the transaction after the deletion cascade has occurred. Add ormClearSession() before the call to the handler method fixes the error, but there seems that the objects in the session after the transactional save on the lines above are stale.

Stack trace:

Activity

Show:
Pinned fields
Click on the next to a field label to start pinning.

Assignee

Reporter

Components

Priority

Created April 6, 2025 at 3:46 PM
Updated April 6, 2025 at 3:46 PM