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

Set type maps on collection level #2288

Merged
merged 1 commit into from
Feb 28, 2021

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Feb 25, 2021

Q A
Type improvement
BC Break no
Fixed issues

Summary

This PR improves the experience for users that create their own MongoDB\Client instance for the document manager. Instead of having to set the appropriate type map, ODM will now apply the type map on the collection level when calling getDocumentCollection. The end result is the same, as the type map gets applied to every operation (unless the operation has is own type map).

@alcaeus alcaeus added this to the 2.3.0 milestone Feb 25, 2021
@alcaeus alcaeus requested a review from malarzm February 25, 2021 10:46
@alcaeus alcaeus self-assigned this Feb 25, 2021
@alcaeus alcaeus force-pushed the collection-level-typemaps branch from 5c9f363 to 38691a4 Compare February 26, 2021 08:33
Copy link
Member

@malarzm malarzm left a comment

Choose a reason for hiding this comment

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

Nice 👍 I'm eager to make this a bugfix for 2.2.x to make it publicly available in a timely manner :) WDYT?

@alcaeus
Copy link
Member Author

alcaeus commented Feb 28, 2021

@malarzm I went for the next minor version since it's a behavioural change. No rush on this one 😊

@alcaeus alcaeus merged commit b0989bc into doctrine:2.3.x Feb 28, 2021
@alcaeus alcaeus deleted the collection-level-typemaps branch February 28, 2021 12:44
@alcaeus alcaeus modified the milestones: 2.3.0-alpha1, 2.3.0 Sep 9, 2021
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.

3 participants