mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #10689] Compute entity-level commit order for entity insertions #12547
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?
Original Pull Request: https://github.com/doctrine/orm/pull/10689
State: closed
Merged: Yes
Make the UoW find a commit order for entity insertions not on the class, but at the entity level. This is the third step to break https://github.com/doctrine/orm/pull/10547 into smaller PRs suitable for reviewing. It uses the new topological sort implementation from #10592 and the refactoring from #10651.
Current situation
UnitOfWork::getCommitOrder()would compute the entity sequence on the class level with the following code:70477d81e9/lib/Doctrine/ORM/UnitOfWork.php (L1310-L1325)Suggested change
Extra bonus
This is what the DALL·E AI thinks it looks like when the
UnitOfWorkis scheduling the sequence of entity insertions.