Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DoctrineBridge]  Fix detection of Xml/Yaml driver in DoctrineExtension #53681

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

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jan 30, 2024

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix doctrine/DoctrineMongoDBBundle#841
License MIT

In DoctrineMongoDBBundle v5, we removed .class attributes to plain class names in service definitions (see doctrine/DoctrineMongoDBBundle#821). The class for doctrine_mongodb.odm.default_xml_metadata_driver changed from doctrine_mongodb.odm.metadata.xml.class to Doctrine\Bundle\MongoDBBundle\Mapping\Driver\XmlDriver.

I fixed the detection of the driver by checking the uppercase Xml and Yaml because it might be necessary if the same change is made to DoctrineBundle.

doctrine/mongodb-odm-bundle requires symfony/doctrine-bridge: "^6.4 || ^7.0" so this patch if not required for older versions of Symfony even if it could be applied.

@GromNaN GromNaN added this to the 6.4 milestone Jan 30, 2024
@GromNaN GromNaN requested a review from derrabus January 30, 2024 10:49
@carsonbot carsonbot changed the title [DoctrineBridge] Fix detection of Xml/Yaml driver in DoctrineExtension [DoctrineBridge]  Fix detection of Xml/Yaml driver in DoctrineExtension Jan 30, 2024
@carsonbot carsonbot added the Bug label Jan 30, 2024
@carsonbot carsonbot modified the milestones: 6.4, 5.4 Jan 30, 2024
@carsonbot

This comment was marked as resolved.

@frenchcomp
Copy link

Thanks @GromNaN !

@nicolas-grekas nicolas-grekas modified the milestones: 5.4, 6.4 Jan 30, 2024
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

That's for 5.4, no?

@GromNaN
Copy link
Member Author

GromNaN commented Jan 30, 2024

That's for 5.4, no?

That's not necessary for doctrine/mongodb-odm-bundle since the bug is in a version that requires 6.4+.

@nicolas-grekas
Copy link
Member

Thank you @GromNaN.

@nicolas-grekas nicolas-grekas merged commit cb0817c into symfony:6.4 Jan 30, 2024
@GromNaN GromNaN deleted the doctrine-xml-detect branch January 30, 2024 11:27
This was referenced Jan 31, 2024
MatTheCat added a commit to MatTheCat/symfony that referenced this pull request Nov 5, 2024
nicolas-grekas added a commit that referenced this pull request Nov 6, 2024
… in DoctrineExtension (MatTheCat)

This PR was merged into the 5.4 branch.

Discussion
----------

[DoctrineBridge] Backport detection fix of Xml/Yaml driver in DoctrineExtension

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix doctrine/DoctrineBundle#1832
| License       | MIT

#53681 got merged on 6.4, but the DoctrinBundle still needs it on 5.4 😅

Commits
-------

f7b61a2 [DoctrineBridge] Backport #53681
nicolas-grekas added a commit that referenced this pull request Nov 6, 2024
* 5.4:
  [DoctrineBridge] Backport #53681
nicolas-grekas added a commit that referenced this pull request Nov 6, 2024
* 6.4:
  [DoctrineBridge] Backport #53681
nicolas-grekas added a commit that referenced this pull request Nov 6, 2024
* 7.1:
  [DoctrineBridge] Backport #53681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants