eZ\Publish\Core\Persistence\Doctrine\DoctrineExpression::like PHP Method

like() public method

Like will look for the pattern in the column given. Like accepts the wildcards '_' matching a single character and '%' matching any number of characters.
public like ( string $expression, string $pattern )
$expression string the name of the expression to match on
$pattern string the pattern to match with.
    public function like($expression, $pattern)
    {
        return "{$expression} LIKE {$pattern}";
    }