Replies: 1 comment 4 replies
-
From memory this can be done in the filter using having() rather than where:
Would need to double check though as I've been away for a bit! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I was hoping that someone could point me in the right direction.
I am trying to create a filter based on a relationship count on version 3, but I am getting an error as it can not find the count field.
Here are snippets of my code:
The error I get is:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'crate_items_count' in 'where clause'
It ignores the withCount() and runs the query as an aggregate.
I really appreciate any help you can provide.
Beta Was this translation helpful? Give feedback.
All reactions