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: customer eloquent builder return wrong type when whereHas is used #896

Merged
merged 4 commits into from
Jul 24, 2021
Merged

fix: customer eloquent builder return wrong type when whereHas is used #896

merged 4 commits into from
Jul 24, 2021

Conversation

fragkp
Copy link
Contributor

@fragkp fragkp commented Jul 24, 2021

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Closes #897

The return type of the whereHas method (EloquentBuilder stub) was previously wrong, so that when a custom builder is used, thus builder is not correct recognized.

@szepeviktor
Copy link
Collaborator

Let us see CI's take on this!

@szepeviktor
Copy link
Collaborator

szepeviktor commented Jul 24, 2021

The problem (:x:) comes from here bf1a22f#r53854185
@canvural will help.

@fragkp fragkp marked this pull request as ready for review July 24, 2021 21:53
@fragkp
Copy link
Contributor Author

fragkp commented Jul 24, 2021

@canvural Ready to review. Thanks for your help!

Edit: Not sure why tests now failing. Locally all have passed.

@canvural canvural changed the title fix: customer eloquent builder return wrong type when wherehas is used [WIP] fix: customer eloquent builder return wrong type when whereHas is used Jul 24, 2021
@canvural canvural merged commit 4cc75b9 into larastan:master Jul 24, 2021
@canvural
Copy link
Collaborator

Thank you!

The failing jobs are not related to this. I'll fix them tomorrow.

@fragkp fragkp deleted the bug-custom-query-builder-wherehas branch July 24, 2021 22:01
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.

Custom Eloquent Builder not resolved after relation builder methods
3 participants