Skip to content

Commit 1272564

Browse files
committed
fix: prevent ambiguous column names
1 parent 9e6b686 commit 1272564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EloquentDataTable.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ protected function resolveRelationColumn(string $column): string
167167
$relation = str_replace('[]', '', implode('.', $parts));
168168

169169
if ($this->isNotEagerLoaded($relation)) {
170-
return $column;
170+
return $this->query->getModel()->getTable().'.'.$column;
171171
}
172172

173173
return $this->joinEagerLoadedColumn($relation, $columnName);

0 commit comments

Comments
 (0)