src/Parser/Doctrine/DoctrineParser.php
final public function parse(RuleGroupInterface $ruleGroup, array $sortColumns = null): ParsedRuleGroup
    {
        $selectString = SelectPartialParser::parse($this->fieldPrefixesToClasses);
        $fromString = FromPartialParser::parse($this->className);
        $joinString = JoinPartialParser::parse($this->fieldPrefixesToClasses);

        $whereParsedRuleGroup = WherePartialParser::parse(
            $this->fieldsToProperties,
            $ruleGroup,
            $this->embeddableFieldsToProperties,
            $this->embeddableInsideEmbeddableFieldsToProperties,
            $this->className
        );
        $whereString = $whereParsedRuleGroup->getQueryString();
        $parameters = $whereParsedRuleGroup->getParameters();

        $orderString = OrderPartialParser::parse(
            $this->fieldsToProperties,
            $sortColumns,
            $this->embeddableFieldsToProperties,
            $this->embeddableInsideEmbeddableFieldsToProperties
        );

        $dqlString = preg_replace('/\s+/', ' ', $selectString.$fromString.$joinString.$whereString.$orderString);

        return new ParsedRuleGroup($dqlString, $parameters, $this->className); // preg_replace -> no more than one space
    }
final public function parse(RuleGroupInterface $ruleGroup, array $sortColumns = null): ParsedRuleGroup
    {
        $selectString = SelectPartialParser::parse($this->fieldPrefixesToClasses);
        $fromString = FromPartialParser::parse($this->className);
        $joinString = JoinPartialParser::parse($this->fieldPrefixesToClasses);

        $whereParsedRuleGroup = WherePartialParser::parse(
            $this->fieldsToProperties,
            $ruleGroup,
            $this->embeddableFieldsToProperties,
            $this->embeddableInsideEmbeddableFieldsToProperties,
            $this->className
        );
        $whereString = $whereParsedRuleGroup->getQueryString();
        $parameters = $whereParsedRuleGroup->getParameters();

        $orderString = OrderPartialParser::parse(
            $this->fieldsToProperties,
            $sortColumns,
            $this->embeddableFieldsToProperties,
            $this->embeddableInsideEmbeddableFieldsToProperties
        );

        $dqlString = preg_replace('/\s+/', ' ', $selectString.$fromString.$joinString.$whereString.$orderString);

        return new ParsedRuleGroup($dqlString, $parameters, $this->className); // preg_replace -> no more than one space
    }
{@inheritdoc}

@return ParsedRuleGroup