Skip to content

Commit 8126490

Browse files
committed
refactor: remove redundant parent key retrieval in EloquentDataTable
1 parent 5fd5c5c commit 8126490

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/EloquentDataTable.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,6 @@ protected function joinEagerLoadedColumn($relation, $relationColumn)
402402
/** @var \Staudenmeir\EloquentHasManyDeep\HasManyDeep<\Illuminate\Database\Eloquent\Model, \Illuminate\Database\Eloquent\Model> $model */
403403
$related = $model->getRelated();
404404

405-
// Get the qualified parent key to determine the first intermediate model
406-
$qualifiedParentKey = $model->getQualifiedParentKeyName();
407-
$parentTable = explode('.', $qualifiedParentKey)[0];
408-
409405
// For HasManyDeep, we need to join through intermediate models
410406
// The relationship query already knows the structure, so we'll use it
411407
// First, join to the first intermediate model (if not already joined)

0 commit comments

Comments
 (0)