[PR #10714] Fixes #10713 - Duplicate entries in CommitOrderCalculator output #12558

Open
opened 2026-01-22 16:14:25 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/10714

State: closed
Merged: No


CommitOrderCalculator may return duplicate entries when visiting complex trees as dependencies nodes can be visited and added to the sorted list while visiting other nodes as reported by https://github.com/doctrine/orm/issues/10713 (this PR solves it)

The issue comes from line 142 where adjacent dependencies are visited: a given $adjacentVertex state can change to VISITED and this is not checked before adding it to the sorted node list.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10714 **State:** closed **Merged:** No --- `CommitOrderCalculator` may return duplicate entries when visiting complex trees as dependencies nodes can be visited and added to the sorted list while visiting other nodes as reported by https://github.com/doctrine/orm/issues/10713 (this PR solves it) The issue comes from line 142 where adjacent dependencies are visited: a given `$adjacentVertex` state can change to `VISITED` and this is not checked before adding it to the sorted node list.
admin added the pull-request label 2026-01-22 16:14:25 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12558