src/Parser/Doctrine/WherePartialParser.php
final private static function transformValueAccordingToQueryBuilderOperator(string $queryBuilderOperator, $value)
    {
        if (!is_string($value)) {
            return $value;
        }

        switch ($queryBuilderOperator) {
            case 'begins_with':
            case 'not_begins_with':
                return $value.'%';
            case 'contains':
            case 'not_contains':
                return '%'.$value.'%';
            case 'ends_with':
            case 'not_ends_with':
                return '%'.$value;
            default:
                return $value;
        }
    }
final private static function transformValueAccordingToQueryBuilderOperator(string $queryBuilderOperator, $value)
    {
        if (!is_string($value)) {
            return $value;
        }

        switch ($queryBuilderOperator) {
            case 'begins_with':
            case 'not_begins_with':
                return $value.'%';
            case 'contains':
            case 'not_contains':
                return '%'.$value.'%';
            case 'ends_with':
            case 'not_ends_with':
                return '%'.$value;
            default:
                return $value;
        }
    }
@param string $queryBuilderOperator
@param mixed  $value

@return string

@see http://doctrine.readthedocs.io/en/latest/en/manual/dql-doctrine-query-language.html#like-expressions