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

Skip to content

[Serializer] Class discriminator and serialization groups #27773

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
Jun 30, 2018

Conversation

sroze
Copy link
Contributor

@sroze sroze commented Jun 29, 2018

Q A
Branch? 4.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #27641
License MIT
Doc PR ø

It turns out the discriminator mapping does not work well with the serialization groups. This is fixing it (+ a little bit of cleaning in the tests).

@sroze sroze force-pushed the class-discriminator-with-groups branch from 45366ac to c91b7af Compare June 29, 2018 11:52
@nicolas-grekas nicolas-grekas added this to the 4.1 milestone Jun 29, 2018
@fabpot
Copy link
Member

fabpot commented Jun 30, 2018

Thank you @sroze.

@fabpot fabpot merged commit c91b7af into symfony:4.1 Jun 30, 2018
fabpot added a commit that referenced this pull request Jun 30, 2018
…(sroze)

This PR was merged into the 4.1 branch.

Discussion
----------

[Serializer] Class discriminator and serialization groups

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27641
| License       | MIT
| Doc PR        | ø

It turns out the discriminator mapping does not work well with the serialization groups. This is fixing it (+ a little bit of cleaning in the tests).

Commits
-------

c91b7af Ensure the class discriminator mechanism works with serialization groups as well
@voodoo-dn
Copy link

Thank you very much. Can you say when new version of serializer with this fix will be available via composer?

@sroze
Copy link
Contributor Author

sroze commented Jul 1, 2018

@voodoo-dn you can already use 4.1-dev as the reference in Composer to get the 4.1 development branch that includes the merged fix :)

@sroze sroze deleted the class-discriminator-with-groups branch July 1, 2018 09:50
@voodoo-dn
Copy link

Thank you)

@fabpot fabpot mentioned this pull request Jul 23, 2018
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.

6 participants