mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Multiple Navigational Properties to the same entity with composite primary key #7220
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @theoaksoft on GitHub (Sep 12, 2023).
Bug Report
I have two entities
EntA&EntBdefined as follows:The design is to ensure that all reference to
EntAfromEntBall belong under the same parent and by parent, I meanEntA::$id1.Summary
Whenever I instantiate
EntBand setEntB::$ref3to null, doctrine sets the columnref_idin theEntBtable to null thereby making the otherEntAreferences to be orphans. even though columnsref_id1,ref_id2have their values intact while columnref_id3is null as expected.Current behavior
How to reproduce
Expected behavior