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

[5.5] (Failing) test for broken withCount when using polymorphic relationship and whereHas #21153

Closed
wants to merge 2 commits into from

Conversation

TheAlexLichter
Copy link
Contributor

@TheAlexLichter TheAlexLichter commented Sep 12, 2017

This PR adds an Integration Test for using $withCount on a model in combination with whereHas and polymorphic relationships. It is currently failing because the query bindings are wrong as I described and showed in #21116.

I've added another test where the withCount method is called before using whereHas with that model to prove that the normal withCount method is working while the $withCount strategy isn't (in this combination).

@taylorotwell
Copy link
Member

We don't merge failing tests. We only merge fixes.

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