sulu / SuluArticleBundle

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system
MIT License
57 stars 78 forks source link

Fix compatibility to symfony 7 in smart content data item #708

Closed Prokyonn closed 2 weeks ago

Prokyonn commented 2 weeks ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes https://github.com/sulu/SuluArticleBundle/issues/703
License MIT

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 (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.

image