We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07112a2 commit 949c3c9Copy full SHA for 949c3c9
src/Laravel/Eloquent/Metadata/IdentifiersExtractor.php
@@ -44,7 +44,7 @@ public function getIdentifiersFromItem(object $item, ?Operation $operation = nul
44
45
private function getIdentifierValue(object $item, Link $link): mixed
46
{
47
- if ($item instanceof ($link->getFromClass())) {
+ if (is_a($item, $link->getFromClass(), true)) {
48
return $this->getEloquentProperty($item, $link->getIdentifiers()[0]);
49
}
50
0 commit comments