Guides
Tutorials
Applies pagination on the Doctrine query for resource collection when enabled.
class ApiPlatform\Doctrine\Orm\Extension\PaginationExtension implements `<a href="/docs/reference/Doctrine/Orm/Extension/QueryResultCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryResultCollectionExtensionInterface</a>`, `<a href="/docs/reference/Doctrine/Orm/Extension/QueryCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface</a>`
{
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, null|ApiPlatform\State\Pagination\Pagination $pagination)
public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public supportsResult(string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): bool
public getResult(Doctrine\ORM\QueryBuilder $queryBuilder, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
}
class ApiPlatform\Doctrine\Orm\Extension\PaginationExtension implements `<a href="/docs/reference/Doctrine/Orm/Extension/QueryResultCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryResultCollectionExtensionInterface</a>`, `<a href="/docs/reference/Doctrine/Orm/Extension/QueryCollectionExtensionInterface">ApiPlatform\Doctrine\Orm\Extension\QueryCollectionExtensionInterface</a>`
{
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, null|ApiPlatform\State\Pagination\Pagination $pagination)
public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public supportsResult(string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): bool
public getResult(Doctrine\ORM\QueryBuilder $queryBuilder, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
}
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, null|ApiPlatform\State\Pagination\Pagination $pagination)
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, null|ApiPlatform\State\Pagination\Pagination $pagination)
managerRegistry | Doctrine\Persistence\ManagerRegistry | |
pagination | ApiPlatform\State\Pagination\Pagination |
public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public applyToCollection(Doctrine\ORM\QueryBuilder $queryBuilder, ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface $queryNameGenerator, 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
public supportsResult(string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): bool
public supportsResult(string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): bool
resourceClass | string | |
operation | ApiPlatform\Metadata\Operation | |
context | array |
bool
public getResult(Doctrine\ORM\QueryBuilder $queryBuilder, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
public getResult(Doctrine\ORM\QueryBuilder $queryBuilder, null|string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
queryBuilder | Doctrine\ORM\QueryBuilder | |
resourceClass | string | |
operation | ApiPlatform\Metadata\Operation | |
context | array |
iterable