Skip to content

Fixes #10715 - Incorrect subclasses dependencies weight while calculating commit orders#10716

Closed
sylfabre wants to merge 1 commit intodoctrine:2.15.xfrom
sylfabre:bug_10715
Closed

Fixes #10715 - Incorrect subclasses dependencies weight while calculating commit orders#10716
sylfabre wants to merge 1 commit intodoctrine:2.15.xfrom
sylfabre:bug_10715

Conversation

@sylfabre
Copy link
Copy Markdown
Contributor

This PR fixes #10715

It makes UnitOfWork::getCommitOrder() use consistent weight for both the parent class and subclasses' dependencies

@sylfabre
Copy link
Copy Markdown
Contributor Author

I would like to add a functional test to prove the bug and that my fix is working but I don't know how to do it:

  • May someone point me in the right direction with an existing functional test I can use as a base
  • Where should I put such a functional test in the repository? Is tests/Doctrine/Tests/ORM/Functional the right path? What should be the filename?

Thanks 🙏

@mpdude
Copy link
Copy Markdown
Contributor

mpdude commented 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 as dev-entity-level-commit-order!) solves the issues for you? If so, please leave a note in #10547.

@sylfabre
Copy link
Copy Markdown
Contributor Author

This PR is replaced by https://github.com/doctrine/orm/pull/10547/files

Thanks @mpdude

@sylfabre sylfabre closed this Jul 30, 2023
@sylfabre sylfabre deleted the bug_10715 branch July 30, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect subclasses dependencies weight while calculating commit orders

2 participants