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

Support doctrine/mongodb-odm ^2.x & doctrine/mongodb-odm-bundle ^4.x #321

Merged
merged 6 commits into from
Oct 15, 2019

Conversation

romainnorberg
Copy link
Contributor

@romainnorberg romainnorberg commented Oct 4, 2019

I am targeting this branch, because this is not BC.

@core23
Copy link
Member

core23 commented Oct 4, 2019

AFAIK you could do this on the stable branch.

WDYT @sonata-project/contributors

src/Guesser/FilterTypeGuesser.php Outdated Show resolved Hide resolved
@OskarStark
Copy link
Member

Yes let’s do it on the stable branch

@romainnorberg romainnorberg changed the base branch from master to 3.x October 4, 2019 08:46
@romainnorberg
Copy link
Contributor Author

hello @core23 @OskarStark Thanks for reviews 👍

I don't have a lot of experience in BC management (I thought I had to target the master branch with these changes) and I am a novice in the contribution to open-source packages 😕

I'll check why CI fail

@aturki
Copy link

aturki commented Oct 8, 2019

Hello,
Both doctrine/mongodb-odm and doctrine/mongodb-odm-bundle require PHP version 7.2 or higher. This is a BC break with the current version 3.x. Shouldn't we target the master branch instead ?

@phansys
Copy link
Member

phansys commented Oct 8, 2019

IMO, from a strict semver point of view, if the changes are respecting BC we could accept them regardless their dependencies; since PHP is in fact a dependency itself.
But we have some extra rules around it which disallow the drop of a security maintained PHP version on a stable branch.

@@ -13,7 +13,7 @@

namespace Sonata\DoctrineMongoDBAdminBundle\Builder;

use Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo;
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class exists in odm 1.x and 2.x. You could support both version inside the composer.json file

@romainnorberg
Copy link
Contributor Author

hello @core23 thanks for review.

  • I updated composer.json file to support both version of mongodb-odm
  • run php-cs fixer (lint CI build)
  • updated FilterTypeGuesserTest -> i don't know if it's the right solution 👀

composer.json Outdated Show resolved Hide resolved
@romainnorberg romainnorberg changed the title Upgrade doctrine/mongodb-odm & doctrine/mongodb-odm-bundle to their last major version Support doctrine/mongodb-odm ^2.x & doctrine/mongodb-odm-bundle ^4.x Oct 15, 2019
@greg0ire greg0ire merged commit a62158b into sonata-project:3.x Oct 15, 2019
@romainnorberg romainnorberg deleted the dependencies branch October 16, 2019 06:12
@romainnorberg
Copy link
Contributor Author

thanks @ALL for your time & reviews

@OskarStark
Copy link
Member

We thank you for this contribution, keep on going 👍🏻👍🏻🥳🥳

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

6 participants