Skip to content

Commit bd9f567

Browse files
authored
dont add BelongsToMany relation column to select
1 parent f4eebc1 commit bd9f567

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/EloquentDataTable.php

-3
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ protected function joinEagerLoadedColumn($relation, $relationColumn)
182182
$foreign = $pivot . '.' . $tablePK;
183183
$other = $related->getQualifiedKeyName();
184184

185-
$lastQuery->addSelect($table . '.' . $relationColumn);
186-
$this->performJoin($table, $foreign, $other);
187-
188185
break;
189186

190187
case $model instanceof HasOneThrough:

0 commit comments

Comments
 (0)