Adds additionally to the JMS Serializer Annotation also the Attributes, because with Symfony 7 the Annotations are ignored by default.
Why
This ended up in a serialized resource (the ArticleViewDocument) and was rendered in the Admin as [Object Object]. Furthermore this could end in some projects in a 500 error, because the extended ArticleViewDocument was not serializeable by the JMS Serializer.
What's in this PR?
Adds additionally to the JMS Serializer Annotation also the Attributes, because with Symfony 7 the Annotations are ignored by default.
Why
This ended up in a serialized
resource
(theArticleViewDocument
) and was rendered in the Admin as [Object Object]. Furthermore this could end in some projects in a 500 error, because the extendedArticleViewDocument
was not serializeable by the JMS Serializer.