koemeet / JsonApiBundle

Integration of JSON API with Symfony using JMS Serializer
55 stars 26 forks source link

return null if class is abstract #17

Closed drewclauson closed 7 years ago

drewclauson commented 9 years ago

Prevents abstract base classes from having their JsonApi annotations loaded when serializing a class that inherits from the base class. Allowing them to be loaded causes JMS serializer to load the base class annotations first and never load the child class annotations at all. Fixes issue noted in #16 , however a base class that is not abstract will still get the wrong annotations when serializing the child object.

koemeet commented 7 years ago

@drewclauson This should be fixed now with fixes introduced in 0.2.x, specifically the dynamic resource type resolving (#29).

drewclauson commented 7 years ago

👍 will check it out, thanks!