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

Fix version constraints for Doctrine MongoDB ODM #2466

Merged

Conversation

alcaeus
Copy link
Contributor

@alcaeus alcaeus commented Jan 21, 2019

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This updates composer.json with a conflict constraint for Doctrine MongoDB ODM. Since the ODM dependency is optional, using conflict is the only way to enforce having 2.0 or later. Users with 1.0 will get weird errors about repositories not being of the expected type instead of a useful message that they should be using API Platform with 2.0 only.

composer.json Outdated Show resolved Hide resolved
@alcaeus alcaeus force-pushed the fix-mongodb-odm-version-resolution branch from 7da751a to d78f5d9 Compare January 21, 2019 07:38
@alcaeus
Copy link
Contributor Author

alcaeus commented Jan 25, 2019

For the record, I have no idea why the tests fail. Shouldn’t be related to this change 😉

@antograssiot
Copy link
Contributor

@alcaeus can you please rebase ? tests have been fixed on 2.4

@alanpoulain alanpoulain force-pushed the fix-mongodb-odm-version-resolution branch from d78f5d9 to 0ba9796 Compare January 26, 2019 13:15
@alanpoulain alanpoulain merged commit 43a2b6c into api-platform:2.4 Jan 26, 2019
@alanpoulain
Copy link
Member

Thank you @alcaeus!

@alcaeus alcaeus deleted the fix-mongodb-odm-version-resolution branch January 26, 2019 13:43
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.

None yet

4 participants