Reference
C
Class

ApiPlatform\Doctrine\Orm\Extension\FilterEagerLoadingExtension

Fixes filters on OneToMany associations https://github.com/api-platform/core/issues/944.

class ApiPlatform\Doctrine\Orm\Extension\FilterEagerLoadingExtension implements `<a href="/docs/reference/Doctrine/Orm/Extension/QueryCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface</a>`
{
    public __construct(bool $forceEager, null|ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver)
    public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
}
class ApiPlatform\Doctrine\Orm\Extension\FilterEagerLoadingExtension implements `<a href="/docs/reference/Doctrine/Orm/Extension/QueryCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface</a>`
{
    public __construct(bool $forceEager, null|ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver)
    public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
}

Methods

__construct

public __construct(bool $forceEager, null|ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver)
public __construct(bool $forceEager, null|ApiPlatform\Api\ResourceClassResolverInterface $resourceClassResolver)

Parameters

forceEagerbool
resourceClassResolverApiPlatform\Api\ResourceClassResolverInterface

applyToCollection

public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null

Parameters

queryBuilderDoctrine\ORM\QueryBuilder
queryNameGeneratorApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface
resourceClassstring
operationApiPlatform\Metadata\Operation
contextarray

Returns

null

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop