src/Parser/Doctrine/WherePartialParser.php
final private static function queryBuilderOperatorToDoctrineOperator(string $queryBuilderOperator): string
    {
        $dictionary = [
            'equal' => '=',
            'not_equal' => '!=',
            'in' => 'IN',
            'not_in' => 'NOT IN',
            'between' => 'BETWEEN',
            'not_between' => 'NOT BETWEEN',
            'less' => '<',
            'less_or_equal' => '<=',
            'greater' => '>',
            'greater_or_equal' => '>=',
            'begins_with' => 'LIKE',
            'not_begins_with' => 'NOT LIKE',
            'contains' => 'LIKE',
            'not_contains' => 'NOT LIKE',
            'ends_with' => 'LIKE',
            'not_ends_with' => 'NOT LIKE',
            // doctrine's 'IS EMPTY' and 'IS NOT EMPTY' is for collections, not strings
            'is_empty' => '= \'\'',
            'is_not_empty' => '!= \'\'', 'is_null' => 'IS NULL',
            'is_not_null' => 'IS NOT NULL',
        ];

        if (!array_key_exists($queryBuilderOperator, $dictionary)) {
            throw new InvalidOperatorException();
        }

        return $dictionary[$queryBuilderOperator];
    }
final private static function queryBuilderOperatorToDoctrineOperator(string $queryBuilderOperator): string
    {
        $dictionary = [
            'equal' => '=',
            'not_equal' => '!=',
            'in' => 'IN',
            'not_in' => 'NOT IN',
            'between' => 'BETWEEN',
            'not_between' => 'NOT BETWEEN',
            'less' => '<',
            'less_or_equal' => '<=',
            'greater' => '>',
            'greater_or_equal' => '>=',
            'begins_with' => 'LIKE',
            'not_begins_with' => 'NOT LIKE',
            'contains' => 'LIKE',
            'not_contains' => 'NOT LIKE',
            'ends_with' => 'LIKE',
            'not_ends_with' => 'NOT LIKE',
            // doctrine's 'IS EMPTY' and 'IS NOT EMPTY' is for collections, not strings
            'is_empty' => '= \'\'',
            'is_not_empty' => '!= \'\'', 'is_null' => 'IS NULL',
            'is_not_null' => 'IS NOT NULL',
        ];

        if (!array_key_exists($queryBuilderOperator, $dictionary)) {
            throw new InvalidOperatorException();
        }

        return $dictionary[$queryBuilderOperator];
    }
@param string $queryBuilderOperator

@return string