Merge cascade of collection fails when orphan removal enabled with flush mode commit

Description

I've recently posted bug report HHH-12826.
Now I've got new version 5.3.3 and get new exception while merging object with collection:

when flushMode is not auto and code is

test case attached

Environment

None

Assignee

Chris Cranford

Reporter

Anton Mityagin

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.2.12

Components

Affects versions

Priority

Major
Configure