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 bucket typemap #2600

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Fix bucket typemap #2600

merged 2 commits into from
Dec 14, 2023

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Dec 14, 2023

Q A
Type bug
BC Break no
Fixed issues #2599

Summary

Fixes an issue introduced in #2288. The type map was not correctly applied to GridFS buckets, so if the document manager was created without the explicit type map (which was required before #2288), GridFS metadata relationships were broken. I've also removed the typeMap option when creating the document manager in tests to ensure the issue doesn't stay hidden.

@alcaeus
Copy link
Member Author

alcaeus commented Dec 14, 2023

CI errors are unrelated.

@alcaeus alcaeus merged commit 2996c0a into doctrine:2.6.x Dec 14, 2023
14 of 16 checks passed
@alcaeus alcaeus deleted the fix-bucket-typemap branch December 14, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GridFs HydratorException : Expected association field "metadata" to be of type "array", "object" received
2 participants