Conversation
|
This branch is put on top of a rebased branch from #1968 |
c7ae971 to
36bd5c4
Compare
|
Seems like I now added a php-version requirement again. Will look into that |
36bd5c4 to
78c1aa4
Compare
|
Ok, so I removed all entity manager injections in the repositories that do not need it, I executed the migrations diff command, but all I got was a whole lot of |
I have these too sometimes. I guess that Doctrine uses comments to store some metadata about the generated structures. But I don't think, they are necessary. If everything works after the upgrade, including applying migrations, then I think we can ignore them. |
|
Yeah generating the diff works. There is a lot in it that is not useful, but my goal was to upgrade doctrine and improve the generated migrations afterwards. Do you agree with that? |
|
If nothing is broken, then there is no problem. For the time being we can remove the comment statements from new generated migrations by hand (or just let them be, I don't know what is better for them). |
|
Will you revert your downgrades for PHP 8.3 as we will upgrade anyway or is this planned for a later PR? |
I think we'll just upgrade that with symfony 8.0 |
As I don't want to compare all files again, please let me know once you applied the suggestions (or rejected them with a short reason summary). I think then this PR can be approved. |
|
9bbc57a to
2aac429
Compare
|
I ran the branch a bit locally and it seems to work fine. Still, I found 2 deprecations reported which are fixable. I created a branch with the suggested changes: https://github.com/MbinOrg/mbin/tree/new/doctrine-upgrade-gear_suggestions We also have to think about a date when we are going upgrade PHP, Symfony and the Doctrine Pack to the latest major versions. |
|
I cherry picked your first commit. I think enabling I am fine with bumping symfony to the new major version and with that also bumping php to 8.4. I just didn't want to do it here, since it was just not necessary, yet. |
This upgrades the doctrine stack (dbal, orm, migrations, etc.):
This kind of supersedes #1873, @blued-gear will create a follow-up PR to commit the migration improvements