UserList Filtering by LastOnline v8.5.7

How can I now do the equivalent of:

$userList->filter(‘u.uLastOnline’, $datevalue, ‘>=’);

The ConcreteCMS API Documentation says the following filter method is now deprecated

filter($field, $value, $comparison = ‘=’) [deprecated]

Interesting that the following still works:


For page lists you have to get the query object and go at it like the following. Probably similar for user lists.

$expr = $this->list->getQueryObject()->expr();
$this->list->getQueryObject()->andWhere($expr->neq('p.cID', $p->getCollectionID()));