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

Declare conflict against "doctrine/orm" >= 2.10 in order to guarantee the schema extension #2255

Merged
merged 1 commit into from
Oct 5, 2021

Conversation

phansys
Copy link
Collaborator

@phansys phansys commented Oct 5, 2021

"doctrine/orm" 2.10.0 removes the possibility to extend the mapping schema, so we must provide our own validation schema in order to support this version.
See doctrine/orm#8852.

@phansys phansys changed the title Declare conflict against "doctrine/mongodb" >= 2.10 in order to guarantee the schema extension Declare conflict against "doctrine/orm" >= 2.10 in order to guarantee the schema extension Oct 5, 2021
@AkenRoberts
Copy link
Member

Aha, yeah that'll do it. 😓

Any idea what the developer experience will be for anyone updating their Composer dependencies? Are they going to get a straight conflict and unable to upgrade Doctrine ORM/DBAL? How soon can we get compatible?

@phansys
Copy link
Collaborator Author

phansys commented Oct 5, 2021

IIUC, the approach suggested by "doctrine/orm" is to declare the full validation schema in our side. IMO, we should discuss about how to implement the "pull" mechanism from the base schema, in order to avoid outdated definitions.

@mbabker
Copy link
Contributor

mbabker commented Oct 5, 2021

Any idea what the developer experience will be for anyone updating their Composer dependencies? Are they going to get a straight conflict and unable to upgrade Doctrine ORM/DBAL?

Every consumer of this package will be required to use ORM 2.9 and earlier. Anyone trying to add this package after being on ORM 2.10 (which potentially also includes DBAL 3.x) might run into conflicts trying to downgrade their dependencies.

@phansys
Copy link
Collaborator Author

phansys commented Oct 5, 2021

Any idea what the developer experience will be for anyone updating their Composer dependencies? Are they going to get a straight conflict and unable to upgrade Doctrine ORM/DBAL?

I think the current situation is worst for users using "doctrine/orm" 2.10, since the features provided by this package are not working at all (as you can see in some recent checks).

@AkenRoberts
Copy link
Member

Right. Not ideal, but necessary for now.

Is there anything else in flight that's critical or very useful for a next release? Worth getting this out quickly.

@phansys
Copy link
Collaborator Author

phansys commented Oct 5, 2021

I think we should merge #2250 and #2246 before the next release.
I'll do the corresponding rebase when this PR is merged.
Thank you,

@AkenRoberts
Copy link
Member

Sounds reasonable. Thank you so much for your contributions lately, Javier.

Just give me a second to get the changelog updated after merging before you rebase.

@phansys
Copy link
Collaborator Author

phansys commented Oct 5, 2021

Just give me a second to get the changelog updated after merging before you rebase.

I can add the changelog on my side for this PR if you agree.

@AkenRoberts
Copy link
Member

Please do, makes my life easier 😄

@AkenRoberts AkenRoberts merged commit 12f41d3 into doctrine-extensions:main Oct 5, 2021
@AkenRoberts
Copy link
Member

🙌🏼

@phansys phansys deleted the schema_extension branch October 5, 2021 02:24
rotdrop added a commit to rotdrop/DoctrineExtensions that referenced this pull request Nov 5, 2021
paxal pushed a commit to sportmium/DoctrineExtensions that referenced this pull request Mar 11, 2022
rotdrop pushed a commit to rotdrop/DoctrineExtensions that referenced this pull request Apr 15, 2023
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.

3 participants