Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Serializer][ClassDiscriminatorMapping] Fix getMappedObjectType() when a discriminator child extends another one #37860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #37742
License MIT
Doc PR -

The strategy is to sort the passed classes from the "bottom" one in the hierarchy to the "top" one so that the first is_a in getMappedObjectType() is right.

@fabpot
Copy link
Member

fabpot commented Aug 18, 2020

@fancyweb Can you check the tests?

@fancyweb fancyweb force-pushed the serializer-fix-class-discriminator branch from 8232835 to c16a192 Compare August 18, 2020 07:04
@fancyweb
Copy link
Contributor Author

@fabpot Tests are green :-)

@fabpot
Copy link
Member

fabpot commented Aug 18, 2020

Thank you @fancyweb.

@fabpot fabpot merged commit 7f7b447 into symfony:4.4 Aug 18, 2020
@fancyweb fancyweb deleted the serializer-fix-class-discriminator branch August 18, 2020 07:35
This was referenced Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants