schmittjoh / JMSSerializerBundle

Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
http://jmsyst.com/bundles/JMSSerializerBundle
MIT License
1.8k stars 312 forks source link

Don't wire the AttributeDriver #932

Closed mbabker closed 1 year ago

mbabker commented 1 year ago
Q A
Bug fix? yes
New feature? no
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #931
License MIT

Fixes the reported issue with a hacky workaround of not wiring in the attribute driver. I've hit too many brick walls trying to make the annotations/attributes drivers support null returns (decorating drivers expect non-null returns, hierarchical stuff breaks without a metadata object being returned), so until everything can be made to work correctly without these drivers always creating a metadata object, this is the quickest solution.