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

PHPORM-119 Fix integration with Spatie Query Builder - Don't qualify field names in document models #2676

Merged
merged 2 commits into from Nov 13, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Nov 10, 2023

Fix #2409 PHPORM-119

As far as I know, there are no cases where you would want to prefix the field name with the collection name. Except in $lookup aggregation pipeline, but that's out of scope of the query builder.

Note that I'm adding the package spatie/laravel-query-builder as a dev dependency to ensure we will always support it. It's a very popular package that looks stable.

Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Functionality LGTM, just a question about skipping the test.

tests/ExternalPackageTest.php Outdated Show resolved Hide resolved
@GromNaN GromNaN changed the title PHPORM-119 Don't qualify field names in document models PHPORM-119 Fix integration with Spacie Query Builder - Don't qualify field names in document models Nov 13, 2023
@GromNaN GromNaN merged commit 1c2d1fe into mongodb:4.1 Nov 13, 2023
13 checks passed
@GromNaN GromNaN deleted the PHPORM-119 branch November 13, 2023 13:38
@GromNaN GromNaN mentioned this pull request Nov 15, 2023
4 tasks
@jmikola jmikola changed the title PHPORM-119 Fix integration with Spacie Query Builder - Don't qualify field names in document models PHPORM-119 Fix integration with Spatie Query Builder - Don't qualify field names in document models Dec 11, 2023
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.

Spatie's QueryBuilder support
2 participants