Orphan removal does not work on session.update function

Description

Let's say I have two entites like

When I call session.update with parent entity, orphanRemoval does not have any affect. It does not delete child entity and relationship between parent and child.

 

I have tried with 5.3.7.Final, 5.4.15.Final, 5.4.16.Final and 5.4.17 Final

 

Test Case can be found in attachment

Environment

None

Assignee

Unassigned

Reporter

Ali Hopyar

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure