|
|
@@ -31,9 +31,9 @@ class ProviderUtils
|
|
|
*
|
|
|
* @param array<mixed> $context
|
|
|
*/
|
|
|
- public function applyCollectionExtensionsAndPagination(string $class, Operation $operation, array $context = []): TraversablePaginator
|
|
|
+ public function applyCollectionExtensionsAndPagination(string $entityClass, Operation $operation, array $context = []): TraversablePaginator
|
|
|
{
|
|
|
- $qb = $this->em->getRepository($class)->createQueryBuilder('o');
|
|
|
+ $qb = $this->em->getRepository($entityClass)->createQueryBuilder('o');
|
|
|
|
|
|
$queryNameGenerator = new QueryNameGenerator();
|
|
|
|
|
|
@@ -42,7 +42,7 @@ class ProviderUtils
|
|
|
$extension->applyToCollection(
|
|
|
$qb,
|
|
|
$queryNameGenerator,
|
|
|
- $class,
|
|
|
+ $entityClass,
|
|
|
$operation,
|
|
|
$context
|
|
|
);
|