Logic for setting inverse side mistakenly removes relation when old and new item are the same
Caused by comparing old and new object by reference (
Submitted by Elmer van Chastelet on 31 October 2024 at 12:25oldthing != newitem
), whereoldthing
is a lazy loaded entity representing the same entity asnewitem
being set. Comparison by reference evaluates to false (both items are not equal), causing the generated setter-code to mistakenly remove the relation fromoldthing
.