You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \LogicException('You can not use the "paginator" if Pargefanta Doctrine ORM Adapter is not available. Try running "composer require pagerfanta/doctrine-orm-adapter".');
46
+
}
47
+
48
+
// Use output walkers option in the query adapter should be false as it affects performance greatly (see sylius/sylius#3775)
thrownew \LogicException('You can not use the "paginator" if Pargefanta Doctrine ORM Adapter is not available. Try running "composer require pagerfanta/doctrine-orm-adapter".');
64
-
}
65
-
66
-
// Use output walkers option in the query adapter should be false as it affects performance greatly (see sylius/sylius#3775)
$errorMessage = sprintf('Method "notFoundMethod" not found on repository "%s". You can either add it or configure another one in the repositoryMethod option for your operation.', \stdClass::class);
$errorMessage = sprintf('Method "createPaginator" not found on repository "%s". You can use the "%s" trait on this repository class.', \stdClass::class, CreatePaginatorTrait::class);
!str_starts_with($method, 'find') && // to allow magic calls on Doctrine repository methods
76
+
!\method_exists($repositoryInstance, $method)) {
77
+
$errorMessage = sprintf('Method "%s" not found on repository "%s". You can either add it or configure another one in the repositoryMethod option for your operation.', $method, get_debug_type($repositoryInstance));
78
+
79
+
if ('createPaginator' === $method) {
80
+
$errorMessage = sprintf('Method "%s" not found on repository "%s". You can use the "%s" trait on this repository class.', $method, get_debug_type($repositoryInstance), CreatePaginatorTrait::class);
81
+
}
82
+
83
+
thrownewRuntimeException($errorMessage);
84
+
}
85
+
70
86
// make it as callable
71
87
/** @var callable $repository */
72
88
$repository = [$repositoryInstance, $method];
@@ -91,7 +107,7 @@ public function provide(Operation $operation, Context $context): object|array|nu
0 commit comments