The trait implemented by
\Zikula\Bundle\CoreBundle\Doctrine\WhereFromFilterTrait adds the following methods to your class:
whereFromFilter(QueryBuilder $qb, array $filter, $exprType = 'and')
Construct a QueryBuilder
Expr object suitable for use in
filter = [field => value, field => value, field => ['operator' => '!=', 'operand' => value], …]
when value is not an array, operator is assumed to be '='
This is used in
\Zikula\UsersModule\Entity\Repository\UserRepository as one example.