koemeet / JsonApiBundle

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

Merge class metadata when extending classes #22

Closed qooplmao closed 8 years ago

qooplmao commented 8 years ago

When extending a class the ClassMetadata gets reset by the with those from the parent. Using the merge method merges (obviously) the sets of metadata together so that the annotations from the child aren't cancelled out by those in the parents.

koemeet commented 8 years ago

👍 Looks good, thanks @qooplmao!

koemeet commented 8 years ago

I really need to write a proper test suite for this bundle 😛