You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if it is possible to use these functions to filter out entities that do not have any related records, e.g.: Select all galleries that have at least 1 photo added to it.
I expected something like Spec::gt(Spec::countOf('photos'), 0) would work but it doesn't. I also unsuccessfully tried Spec::gt('COUNT(photos)', 0).
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm wondering if it is possible to use these functions to filter out entities that do not have any related records, e.g.: Select all galleries that have at least 1 photo added to it.
I expected something like
Spec::gt(Spec::countOf('photos'), 0)
would work but it doesn't. I also unsuccessfully triedSpec::gt('COUNT(photos)', 0)
.Thanks!
The text was updated successfully, but these errors were encountered: