[PR #7660] Fixed commit order #10588

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

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

State: closed
Merged: No


Fixes visit method of CommitOrderCalculator.

Without the fix the insertion order is not properly calculated when a cycle within the graph involves more than 2 classes, leading to a violation of not null constraints on the owning side of ManyToOne relation.

With the fix when a cycle is detected a node is revisited ignoring edges of weight 0.

**Original Pull Request:** https://github.com/doctrine/orm/pull/7660 **State:** closed **Merged:** No --- Fixes visit method of CommitOrderCalculator. Without the fix the insertion order is not properly calculated when a cycle within the graph involves more than 2 classes, leading to a violation of not null constraints on the owning side of ManyToOne relation. With the fix when a cycle is detected a node is revisited ignoring edges of weight 0.
admin added the pull-request label 2026-01-22 16:08:03 +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#10588