Skip to content

Commit 67b3fa3

Browse files
committed
Fix wrong denormalization context for related resources
Fixes #303
1 parent 1e6d1f1 commit 67b3fa3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

JsonLd/Serializer/ItemNormalizer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ public function denormalize($data, $class, $format = null, array $context = [])
189189
$resource = $this->guessResource($data, $context, true);
190190
$normalizedData = $this->prepareForDenormalization($data);
191191

192+
$context = $this->createContext($resource, $context);
193+
192194
$attributesMetadata = $this->getMetadata($resource, $context)->getAttributes();
193195

194196
$allowedAttributes = [];

0 commit comments

Comments
 (0)