Skip to content

Commit 290b1e1

Browse files
committed
fix: phpstan error
1 parent 76be0f2 commit 290b1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Forms/PageBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public function relationship(
350350
return [
351351
...$item,
352352
'data' => json_encode($item['data'] ?? []),
353-
"{$relationshipName}_id" => $record->id,
353+
"{$relationshipName}_id" => $record->getKey(),
354354
"{$relationshipName}_type" => $record->getMorphClass(),
355355
];
356356
}, $state), uniqueBy: ['id'], update: ['data', 'order', 'updated_at']);

0 commit comments

Comments
 (0)