Skip to content

Commit

Permalink
Fix summarizer connection resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
saulens22 committed Jan 22, 2025
1 parent f191be9 commit 12bea31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/tables/src/Columns/Summarizers/Summarizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function (EloquentBuilder $relatedQuery) use ($baseQuery, $query): EloquentBuild

$asName = (string) str($query->getModel()->getTable())->afterLast('.');

$query = $query->getModel()->resolveConnection()
$query = $query->getModel()->getConnection()
->table($query->toBase(), $asName);

if ($this->hasQueryModification()) {
Expand Down
2 changes: 1 addition & 1 deletion packages/tables/src/Concerns/CanSummarizeRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getTableSummarySelectedState(Builder $query, ?Closure $modifyQue
$queryToJoin = $query->clone();
$joins = [];

$query = $query->getModel()->resolveConnection()
$query = $query->getModel()->getConnection()
->table($query->toBase(), $query->getModel()->getTable());

if ($modifyQueryUsing) {
Expand Down

0 comments on commit 12bea31

Please sign in to comment.