Skip to content
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

Require doctrine/persistence 2 #39118

Open
wants to merge 1 commit into
base: 5.2
from

Conversation

@greg0ire
Copy link
Contributor

@greg0ire greg0ire commented Nov 19, 2020

Q A
Branch 5.x
Bug fix no
New feature no
Deprecations no
Tickets n/a
License MIT
Doc PR n/a

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

@stof
Copy link
Member

@stof stof commented Nov 19, 2020

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.

@greg0ire greg0ire force-pushed the greg0ire:cleanup-autoload-calls branch from e3d866e to 418da2b Nov 19, 2020
@derrabus
Copy link
Member

@derrabus derrabus commented Nov 19, 2020

Making Persistence 2.0 a requirement would basically render our codebase incompatible with ORM 2.6, correct?

@stof
Copy link
Member

@stof stof commented Nov 19, 2020

ORM 2.6 is EOL AFAICT

@greg0ire
Copy link
Contributor Author

@greg0ire greg0ire commented Nov 19, 2020

I think it would, but I don't think it's a big deal, for reasons pointed out by @stof

@derrabus
Copy link
Member

@derrabus derrabus commented Nov 19, 2020

Yeah, I think we're good. It's just that the Bridge's composer.json says "doctrine/orm": "^2.6.3" and I thought we should've at least talked about that hidden version bump. 😃

@stof
Copy link
Member

@stof stof commented Nov 19, 2020

@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

@stof
Copy link
Member

@stof stof commented Nov 19, 2020

It's just that the Bridge's composer.json says "doctrine/orm": "^2.6.3" and I thought we should've at least talked about that hidden version bump.

We could update that one to ^2.7.3 to avoid confusion

@greg0ire
Copy link
Contributor Author

@greg0ire greg0ire commented Nov 19, 2020

Should I bump the ORM constraint globally as well?

@derrabus
Copy link
Member

@derrabus derrabus commented Nov 19, 2020

@greg0ire Yes, please. The ORM version referenced there can be considered antique by now. 😅

@greg0ire greg0ire force-pushed the greg0ire:cleanup-autoload-calls branch from 418da2b to 1fcf6fa Nov 19, 2020
@alcaeus
Copy link
Contributor

@alcaeus alcaeus commented Nov 19, 2020

@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

It's no longer supported, so we can start the process of dropping support for it.

@stof
stof approved these changes Nov 19, 2020
@fabpot
fabpot approved these changes Nov 20, 2020
Copy link
Member

@fabpot fabpot left a comment

What about doing it in the 5.2 branch instead?

@greg0ire greg0ire changed the base branch from 5.x to 5.2 Nov 20, 2020
@greg0ire greg0ire requested review from sroze, xabbuh and yceruto as code owners Nov 20, 2020
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.
@greg0ire greg0ire force-pushed the greg0ire:cleanup-autoload-calls branch from 1fcf6fa to 574a184 Nov 20, 2020
@greg0ire
Copy link
Contributor Author

@greg0ire greg0ire commented Nov 20, 2020

@fabpot you're right, done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants
You can’t perform that action at this time.