Skip to content

[Serializer] Add documentation about context and Serializer::EMPTY_ARRAY_AS_OBJECT #15580

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 10, 2021

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Aug 3, 2021

fixes #15554

@javiereguiluz
Copy link
Member

Thanks Greg!

@lyrixx lyrixx deleted the serializer-empty branch August 10, 2021 18:49
javiereguiluz added a commit that referenced this pull request Aug 8, 2022
…ect in example (alanpoulain)

This PR was merged into the 5.4 branch.

Discussion
----------

[Serializer] fix(serializer): missing empty_array_as_object in example

This PR:
- Replaces `empty_iterable_as_object` by `preserve_empty_objects`, like it should be.
- Adds `empty_array_as_object` to example in Serializer Context.
- Removes the mention `by default`, since it's `false` by default.

Related:
- #15554
- #15580
- symfony/symfony#42240
- symfony/symfony#42297

Commits
-------

cc54517 fix(serializer): missing empty_array_as_object in example
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.

[Serializer] Add support for preserving empty object in object property
4 participants