mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Duplicate entries in CommitOrderCalculator output #7154
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 @sylfabre on GitHub (May 19, 2023).
Bug Report
Summary
While investigating an insertion order issue with a complex entity relationships setup, I found out that
CommitOrderCalculatormay return a set with duplicate class entries which is creating a bug in my application.Current behavior
CommitOrderCalculatormay return a set with duplicate class entries.How to reproduce
This test shows that there are 7 elements in the sorted set of
testCommitOrdering4():Expected behavior
Correct behavior is having as many entries in the sorted set than in the initial node list.
@sylfabre commented on GitHub (May 19, 2023):
https://github.com/doctrine/orm/pull/10714 is fixing this issue
@mpdude commented on GitHub (May 31, 2023):
Hey there 👋🏼,
I am actively working on major changes to the commit order computation. Could you please have a look at #10547 and/or try if the branch
entity-level-commit-order(you can Composer-install it asdev-entity-level-commit-order!) solves the issues for you? If so, please leave a note in #10547.@sylfabre commented on GitHub (Jul 30, 2023):
This issue will be fixed by https://github.com/doctrine/orm/pull/10547/files
Thanks @mpdude