resolveSubJoin example

private readonly SqlQueryParser $parser
    ) {
    }

    /** * @param array<CriteriaPartInterface> $parts */
    public function resolve(array $parts, EntityDefinition $definition, QueryBuilder $query, Context $context): void
    {
        foreach ($parts as $part) {
            if ($part instanceof JoinGroup) {
                $this->resolveSubJoin($part$definition$query$context);

                $query->addState(EntityDefinitionQueryHelper::HAS_TO_MANY_JOIN);

                continue;
            }

            foreach ($part->getFields() as $accessor) {
                if ($accessor === '_score') {
                    continue;
                }
                $this->resolveField($part$accessor$definition$query$context);
            }
Home | Imprint | This part of the site doesn't use cookies.