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

Skip to content

[Serializer] Use object class resolver when extracting attributes #30711

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

Conversation

joelwurtz
Copy link
Contributor

Q A
Branch? 4.2
Bug fix? yes
New feature? no
BC breaks? no (not sure)
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Current ObjectNormalizer was not using the object class resolver when extracting attributes, i found this when trying to refactor api platform normalizers and dealing with doctrine proxy objet having initialize property not wanted cf api-platform/core#2579

I don't think this is BC break, but maybe some people using this object class resolver can get different behavior ?

@joelwurtz joelwurtz changed the base branch from master to 4.2 March 26, 2019 14:15
@joelwurtz joelwurtz changed the title Feature/serializer object class resolver [Serializer] Use object class resolver when extracting attributes Mar 26, 2019
@fabpot fabpot force-pushed the feature/serializer-object-class-resolver branch from c384f41 to 1d8b5af Compare March 27, 2019 06:23
@fabpot
Copy link
Member

fabpot commented Mar 27, 2019

Thank you @joelwurtz.

@fabpot fabpot merged commit 1d8b5af into symfony:4.2 Mar 27, 2019
fabpot added a commit that referenced this pull request Mar 27, 2019
…ributes (joelwurtz)

This PR was squashed before being merged into the 4.2 branch (closes #30711).

Discussion
----------

[Serializer] Use object class resolver when extracting attributes

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no (not sure)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Current ObjectNormalizer was not using the object class resolver when extracting attributes, i found this when trying to refactor api platform normalizers and dealing with doctrine proxy objet having __initialize__ property not wanted cf api-platform/core#2579

I don't think this is BC break, but maybe some people using this object class resolver can get different behavior ?

Commits
-------

1d8b5af [Serializer] Use object class resolver when extracting attributes
@fabpot fabpot mentioned this pull request Apr 2, 2019
@joelwurtz joelwurtz deleted the feature/serializer-object-class-resolver branch August 14, 2023 20:13
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.

4 participants