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(model): make bulkSave() save changes in discriminator paths if calling bulkSave() on base model #13959

Merged
merged 1 commit into from Oct 10, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13907

Summary

Calling bulkSave() with the base model means bulkSave() only casts against the base model, ignoring discriminators. This PR fixes that by setting the discriminator key on the corresponding update for every document that has a discriminator key.

Examples

@vkarpov15 vkarpov15 merged commit 03c6967 into master Oct 10, 2023
42 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13907 branch October 10, 2023 18:34
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.

When saving a model with bulkSave, the values in the discriminator schema are not updated.
3 participants