-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Serializer] ignored_attributes key is ignored in Objectnormalizer when we use default_context configuration key #52776
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
Comments
Can you please check if #52795 fixes your issue? |
@xabbuh, I just checked and the problem still occurs. Thank you for your answer |
@gcrispyn Can you create a small example application that allows to reproduce your issue? |
…lt serialization context (xabbuh) This PR was merged into the 5.4 branch. Discussion ---------- [FrameworkBundle] do not overwrite an application's default serialization context | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52776 | License | MIT Commits ------- a11801e do not overwrite an application's default serialization context
I merged the referenced pull request. @gcrispyn If you still experience this after updating to the current 5.4 dev branch, please create a small example application that allows to reproduce it. |
Symfony version(s) affected
5.4.31
Description
When I setup a default_context inside framework.yml, the array defined in ignored_attributes is not injected into ObjectNormalizer
How to reproduce
Create that configuration in framweork.yml :
If you dump the serializer, you will see this :
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: