Skip to content

Add Hybrid has and whereHas functionality #1195

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

Merged
merged 7 commits into from
Sep 5, 2017
Merged

Add Hybrid has and whereHas functionality #1195

merged 7 commits into from
Sep 5, 2017

Conversation

Tucker-Eric
Copy link
Contributor

@Tucker-Eric Tucker-Eric commented May 18, 2017

This adds the support for has and whereHas for hybrid relations between mongodb models and mysql models.

This should close #1035, #803, #730, #342, #1225, and #1159, #1305

Copy link

@vesper8 vesper8 left a comment

Choose a reason for hiding this comment

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

I have been using his branch for a few days and have run it through multiple scenarios using has and whereHas on mysql models with relationships to mongodb models and everything works as expected

@martingg88
Copy link

any update to commit into master version?

@vesper8
Copy link

vesper8 commented Jul 13, 2017

@martingg88 I have been using this branch for almost 2 months now and haven't had any problems at all

@jenssegers I really wish you would merge this one in or at least take a look at it.. a lot of people have been requesting this addition for a very long time now

@Tucker-Eric
Copy link
Contributor Author

Tests are passing now but StyleCI hates me

@jenssegers jenssegers merged commit 39f6516 into mongodb:master Sep 5, 2017
@jenssegers
Copy link
Contributor

Sorry for the delay!

@alquesadilla
Copy link

alquesadilla commented Sep 5, 2017

Call to undefined method Jenssegers\Mongodb\Query\Builder::getRelationWithoutConstraints() when using dev-master

https://stackoverflow.com/questions/46023352/laravel-mongo-many-to-many-relation-wherehas-not-working

GromNaN added a commit to GromNaN/laravel-mongodb-fork that referenced this pull request Sep 11, 2023
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
Add Hybrid `has` and `whereHas` functionality
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.

Querying Sql Model relationship existence with mongo model
5 participants