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 7888f87 commit bdd8052Copy full SHA for bdd8052
src/Hydrators/HydratorsContainer.php
@@ -67,8 +67,7 @@ public function findHydrator(JsonAPIDocument\IDocument $document): ?Hydrator
67
$schema = $this->getSchemaContainer()
68
->getSchemaByClassName($hydrator->getEntityName());
69
70
- if ($schema->getType() === $document->getResource()
71
- ->getType()) {
+ if ($schema->getType() === $document->getResource()->getType()) {
72
return $hydrator;
73
}
74
0 commit comments