Guides
Tutorials
Applies pagination on the Doctrine aggregation for resource collection when enabled.
class ApiPlatform\Doctrine\Odm\Extension\PaginationExtension implements `<a href="/docs/reference/Doctrine/Odm/Extension/AggregationResultCollectionExtensionInterface">ApiPlatform\Doctrine\Odm\Extension\AggregationResultCollectionExtensionInterface</a>`, `<a href="/docs/reference/Doctrine/Odm/Extension/AggregationCollectionExtensionInterface">ApiPlatform\Doctrine\Odm\Extension\AggregationCollectionExtensionInterface</a>`
{
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, ApiPlatform\State\Pagination\Pagination $pagination)
public applyToCollection(Doctrine\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, 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\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
}
class ApiPlatform\Doctrine\Odm\Extension\PaginationExtension implements `<a href="/docs/reference/Doctrine/Odm/Extension/AggregationResultCollectionExtensionInterface">ApiPlatform\Doctrine\Odm\Extension\AggregationResultCollectionExtensionInterface</a>`, `<a href="/docs/reference/Doctrine/Odm/Extension/AggregationCollectionExtensionInterface">ApiPlatform\Doctrine\Odm\Extension\AggregationCollectionExtensionInterface</a>`
{
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, ApiPlatform\State\Pagination\Pagination $pagination)
public applyToCollection(Doctrine\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, 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\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
}
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, ApiPlatform\State\Pagination\Pagination $pagination)
public __construct(Doctrine\Persistence\ManagerRegistry $managerRegistry, ApiPlatform\State\Pagination\Pagination $pagination)
managerRegistry | Doctrine\Persistence\ManagerRegistry | |
pagination | ApiPlatform\State\Pagination\Pagination |
public applyToCollection(Doctrine\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
public applyToCollection(Doctrine\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): null
aggregationBuilder | Doctrine\ODM\MongoDB\Aggregation\Builder | |
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\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
public getResult(Doctrine\ODM\MongoDB\Aggregation\Builder $aggregationBuilder, string $resourceClass, null|ApiPlatform\Metadata\Operation $operation, array $context): iterable
aggregationBuilder | Doctrine\ODM\MongoDB\Aggregation\Builder | |
resourceClass | string | |
operation | ApiPlatform\Metadata\Operation | |
context | array |
iterable