Skip to content

check the value of overwriteModels in options#14646

Merged
vkarpov15 merged 1 commit into
Automattic:masterfrom
uditha-g:master
Jun 4, 2024
Merged

check the value of overwriteModels in options#14646
vkarpov15 merged 1 commit into
Automattic:masterfrom
uditha-g:master

Conversation

@uditha-g

@uditha-g uditha-g commented Jun 3, 2024

Copy link
Copy Markdown

Summary

When we call the discriminator function of a model we can pass options with overwriteModels Boolean field.
But that field isn't considered in the logic.

Examples

model.discriminator(discriminatorName, schema, { overwriteModels: true });

@vkarpov15 vkarpov15 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good find, thank you 👍

@vkarpov15 vkarpov15 added this to the 8.4.2 milestone Jun 4, 2024
@vkarpov15 vkarpov15 merged commit c71ba5e into Automattic:master Jun 4, 2024
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.

2 participants