Lukas W.
Well-known member
I'm looking to construct an advanced 'where' statement for my finder. I have a set of ids and want to filter for all entities, that have a relation with all of these ids. The to_many relation is defined in the entity. Is there a way to do a
To get an example: I have a group of user ids and want to filter all (previously filtered) threads down to those that have a watch-relation with all these users.
$finder->where([...])
query to check, if these relations exists? Would be optimal if this could be compressed into a single where-call, but I don't mind doing many as well, as the number of ids will likely never be higher than 2 or 3.To get an example: I have a group of user ids and want to filter all (previously filtered) threads down to those that have a watch-relation with all these users.