Skip to content

Add Mongo builder mixin to DocumentModel #3417

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

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

paulinevos
Copy link
Collaborator

It helps with autocompletion as IDEs will recognize Mongo builder methods that are not present on the base builder.

Checklist

  • Add tests and ensure they pass N/A

@paulinevos paulinevos requested a review from a team as a code owner June 25, 2025 08:24
@paulinevos paulinevos requested a review from GromNaN June 25, 2025 08:24
It helps with autocompletion as IDEs will recognize Mongo builder
methods that are not present on the base builder.
@@ -50,6 +50,7 @@
use function strlen;
use function var_export;

/** @mixin Builder */
Copy link
Member

Choose a reason for hiding this comment

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

I had to remove the @mixin annotation from the Model class (#2981) because the return types of the methods is not the same in the Builder and the Model. I must have made a mistake.

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