Update AssociateAction.php

This commit is contained in:
Dan Harrin
2023-12-05 00:16:00 +00:00
parent 2842486392
commit d3fd8ce47f
@@ -238,7 +238,7 @@ class AssociateAction extends Action
}
return $query->where(
// https://github.com/filamentphp/filament/issues/8067
// https://github.com/filamentphp/filament/issues/8067
$relationship->getParent()->getTable() === $relationship->getRelated()->getTable() ?
$relationship->getParent()->getKeyName() :
$relationship->getParent()->getQualifiedKeyName(),