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

Unable to flush withCount() #80

Open
jetwes opened this issue Apr 27, 2020 · 2 comments
Open

Unable to flush withCount() #80

jetwes opened this issue Apr 27, 2020 · 2 comments

Comments

@jetwes
Copy link

jetwes commented Apr 27, 2020

If i query a realtion with withCount() the counting is never been refreshed, even after flushing the cache. The counting only works if I add dontRemember() to the query...

@dwightwatson
Copy link
Owner

That’s odd. I don’t have time to dedicate to this right now, but would be happy to look at a PR that resolves it.

@jetwes
Copy link
Author

jetwes commented Apr 28, 2020

The withCount() queries are built using the Illuminate\Database\Eloquent\Builder. I think this is the problem because your package only handles the Illuminate\Database\Query\Builder.
This isn't trivial to solve... I'll look if i have a bit time to solve this...

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

No branches or pull requests

2 participants