mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
fix: use relationship local key
This commit is contained in:
@@ -1016,7 +1016,7 @@ class Select extends Field implements Contracts\CanDisableOptions, Contracts\Has
|
||||
}
|
||||
|
||||
$query->update([
|
||||
$relationship->getForeignKeyName() => $record->getKey(),
|
||||
$relationship->getForeignKeyName() => $record->getAttribute($relationship->getLocalKeyName()),
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user