diff --git a/src/Serializer/MediaNormalizer.php b/src/Serializer/MediaNormalizer.php index f1af742e..a5aa5425 100644 --- a/src/Serializer/MediaNormalizer.php +++ b/src/Serializer/MediaNormalizer.php @@ -23,7 +23,12 @@ public function normalize( ): array|string|int|float|bool|\ArrayObject|null { if ($object instanceof $this->mediaClass) { $context[AbstractNormalizer::IGNORED_ATTRIBUTES] = [ + 'lazyObjectState', + 'lazyObjectInitialized', + 'lazyObjectAsInitialized', + 'statusList', 'metadataValue', + 'statusList', '__initializer__', '__cloner__', '__isInitialized__', ];