|
@@ -57,7 +57,7 @@ discard block |
|
|
block discarded – undo |
|
57
|
57
|
$this->contextBuilder = $contextBuilder; |
|
58
|
58
|
$this->propertyAccessor = $propertyAccessor ?: PropertyAccess::createPropertyAccessor(); |
|
59
|
59
|
|
|
60
|
|
- $this->setCircularReferenceHandler(function ($object) { |
|
|
60
|
+ $this->setCircularReferenceHandler(function($object) { |
|
61
|
61
|
return $this->iriConverter->getIriFromItem($object); |
|
62
|
62
|
}); |
|
63
|
63
|
} |
|
@@ -306,7 +306,7 @@ discard block |
|
|
block discarded – undo |
|
306
|
306
|
if (!$this->resourceClassResolver->isResourceClass($className) || $propertyMetadata->isWritableLink()) { |
|
307
|
307
|
try { |
|
308
|
308
|
return $this->serializer->denormalize($value, $className, self::FORMAT, $this->createRelationContext($className, $context)); |
|
309
|
|
- } catch(EntityNotFoundException $e) { |
|
|
309
|
+ } catch (EntityNotFoundException $e) { |
|
310
|
310
|
throw new InvalidArgumentException($e->getMessage()); |
|
311
|
311
|
} |
|
312
|
312
|
} |
Please login to merge, or discard this patch.