Hi,
Otherwise you can do this for example:
$select = $this-select(
function (Select $select) use ($userEmail, $userId) {
$select-where-equalTo('email', $userEmail);
if ($userId !== null) {
$select-where-notEqualTo('id', $userId);
}
}
);
2013/9/15
I got this as an answer, I hope it may help for others.
Hello Andras,
Just saw you message
Didn't want to clutter the list with the reply...
Simply there is addPredicate internal mechanism used in those classes
You've got to pass a filter to select closure then apply it in the
closure