-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DoctrineBridge] Require doctrine/persistence 2 #39118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
As there is no change in the composer.json of the doctrine bridge, you have no guarantee that doctrine/persistence 2 is actually used when using the subtree packages. |
e3d866e
to
418da2b
Compare
Making Persistence 2.0 a requirement would basically render our codebase incompatible with ORM 2.6, correct? |
ORM 2.6 is EOL AFAICT |
I think it would, but I don't think it's a big deal, for reasons pointed out by @stof |
Yeah, I think we're good. It's just that the Bridge's composer.json says |
@alcaeus is the ODM 1.3.x still maintained (and supported by a version of the bundle compatible with Symfony 5) ? Because that would also drop support for the ODM 1.3.x |
We could update that one to |
Should I bump the ORM constraint globally as well? |
@greg0ire Yes, please. The ORM version referenced there can be considered antique by now. 😅 |
418da2b
to
1fcf6fa
Compare
It's no longer supported, so we can start the process of dropping support for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about doing it in the 5.2 branch instead?
This allows us to remove autoload calls that are necessary for the persistence 1 backwards-compatibility layer to work. The require-dev constraints on doctrine/orm are bumped to ^2.7.3 because lower versions are not compatible with doctrine/persistence 2.
1fcf6fa
to
574a184
Compare
@fabpot you're right, done! |
Build failure looks unrelated but interesting https://travis-ci.com/github/symfony/symfony/jobs/444188596#L2509 |
fix welcome :) |
Thank you @greg0ire. |
This allows us to remove autoload calls that are necessary for the
persistence 1 backwards-compatibility layer to work.
This is a follow up of #35728