We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b8bca6 + 66a65f7 commit d63e6a8Copy full SHA for d63e6a8
1 file changed
src/Concerns/BuildsQueries.php
@@ -478,7 +478,8 @@ protected function getOriginalColumnNameForCursorPagination(Builder|\Hyperf\Data
478
479
$alias = substr($column, $position + 4);
480
481
- if ($parameter === $alias || $builder->getGrammar()->wrap($parameter) === $alias) {
+ $grammar = $builder instanceof Builder ? $builder->getQuery()->getGrammar() : $builder->getGrammar();
482
+ if ($parameter === $alias || $grammar->wrap($parameter) === $alias) {
483
return $original;
484
}
485
0 commit comments