Guides
Tutorials
Eager loads relations.
class ApiPlatform\Doctrine\Orm\Extension\EagerLoadingExtension implements `<a href="/docs/reference/Doctrine/Orm/Extension/QueryCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface</a>`, `<a href="/docs/reference/Doctrine/Orm/Extension/QueryItemExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface</a>`
{
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, 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, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public applyToItem(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, null|ApiPlatform\Metadata\Operation $operation, array $context): null
}
class ApiPlatform\Doctrine\Orm\Extension\EagerLoadingExtension implements `<a href="/docs/reference/Doctrine/Orm/Extension/QueryCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface</a>`, `<a href="/docs/reference/Doctrine/Orm/Extension/QueryItemExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryItemExtensionInterface</a>`
{
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, 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, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public applyToItem(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, null|ApiPlatform\Metadata\Operation $operation, array $context): null
}
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, ApiPlatform\Metadata\Property\Factory\PropertyMetadataFactoryInterface $propertyMetadataFactory, int $maxJoins, bool $forceEager, bool $fetchPartial, null|Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface $classMetadataFactory)
public __construct(ApiPlatform\Metadata\Property\Factory\PropertyNameCollectionFactoryInterface $propertyNameCollectionFactory, 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, 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
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, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public applyToItem(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, null|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