`$qb->andWhere()->like()->documentlocalName('i')->literal('%'.$term.'%')`
or

````php
$qb->andWhere()->like()->documentlocalName('i')->parameter('term');
$qb->setParameter('term', '%'.$term.'%');
````