Eager loads relations.
class ApiPlatform\Doctrine\Orm\Extension\EagerLoadingExtension implements , `<a href="/docs/main/references/Doctrine/Orm/Extension/QueryItemExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface
{
public __construct($propertyNameCollectionFactory, `<a href="/docs/main/references/Metadata/Property/Factory/PropertyMetadataFactoryInterface">ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, int $maxJoins, bool $forceEager, bool $fetchPartial, null|Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $classMetadataFactory)
public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, $queryNameGenerator, null|string $resourceClass, null|`<a href="/docs/main/references/Metadata/Operation">ApiPlatform\Metadata\Operation $operation, array $context): null
public applyToItem(Doctrine\ORM\QueryBuilder $queryBuilder, $queryNameGenerator, string $resourceClass, array $identifiers, null|`<a href="/docs/main/references/Metadata/Operation">ApiPlatform\Metadata\Operation $operation, array $context): null
}
public __construct($propertyNameCollectionFactory, `<a href="/docs/main/references/Metadata/Property/Factory/PropertyMetadataFactoryInterface">ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, int $maxJoins, bool $forceEager, bool $fetchPartial, null|Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $classMetadataFactory)
propertyNameCollectionFactory | `ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface` | |
propertyMetadataFactory | `ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface` | |
maxJoins | int | |
forceEager | bool | |
fetchPartial | bool | |
classMetadataFactory | Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface |
public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, $queryNameGenerator, null|string $resourceClass, null|`<a href="/docs/main/references/Metadata/Operation">ApiPlatform\Metadata\Operation $operation, array $context): null
queryBuilder | Doctrine\ORM\QueryBuilder | |
queryNameGenerator | `ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface` | |
resourceClass | string | |
operation | `ApiPlatform\Metadata\Operation` | |
context | array |
null
The context may contain serialization groups which helps defining joined entities that are readable.
public applyToItem(Doctrine\ORM\QueryBuilder $queryBuilder, $queryNameGenerator, string $resourceClass, array $identifiers, null|`<a href="/docs/main/references/Metadata/Operation">ApiPlatform\Metadata\Operation $operation, array $context): null
queryBuilder | Doctrine\ORM\QueryBuilder | |
queryNameGenerator | `ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface` | |
resourceClass | string | |
identifiers | array | |
operation | `ApiPlatform\Metadata\Operation` | |
context | array |
null
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more