Skip to content

Conversation

@GromNaN
Copy link
Member

@GromNaN GromNaN commented Dec 16, 2025

Marking DoctrineMongoDBMappingsPass as @internal is incorrect. This class is made to be used by 3rd party bundles to register mapping for their own document classes.

Example of usage:

@GromNaN GromNaN added this to the 5.6.0 milestone Dec 16, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the @internal annotation from DoctrineMongoDBMappingsPass to properly expose it as a public API, since it's designed for third-party bundles to register document mappings. The change includes comprehensive test coverage and documentation.

  • Removed @internal annotation from DoctrineMongoDBMappingsPass class
  • Added comprehensive test suite covering all four mapping driver types (XML, PHP, Attribute, StaticPHP)
  • Created documentation explaining how bundles should use the compiler pass

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/DependencyInjection/Compiler/DoctrineMongoDBMappingsPass.php Removed @internal annotation to expose class as public API
tests/DependencyInjection/Compiler/DoctrineMongoDBMappingsPassTest.php Added test coverage for all four mapping driver factory methods
docs/index.rst Added reference to new bundles documentation page
docs/cookbook/bundles.rst Created comprehensive guide for third-party bundle developers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GromNaN GromNaN merged commit 5a93986 into doctrine:5.6.x Dec 18, 2025
14 checks passed
@GromNaN GromNaN deleted the mappings-pass branch December 18, 2025 10:21
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.

2 participants