nocte
Well-known member
I have a set of database entries with a user criteria field.
Now I want to fetch all users that match this criteria.
I searched in the core files, and tired a few things out. This does not work:
It gives me just all users. SQL:
When i dump my $message->user_criteria I get this:
Now I want to fetch all users that match this criteria.
I searched in the core files, and tired a few things out. This does not work:
PHP:
$users = $this->searcher('XF:User', $message->user_criteria)->getFinder()->fetch();
It gives me just all users. SQL:
SQL:
SELECT `xf_user`.*
FROM `xf_user`
When i dump my $message->user_criteria I get this:
Code:
array:1 [
"messages_posted" => array:2 [
"rule" => "messages_posted"
"data" => array:1 [
"messages" => "1"
]
]
]