Skip to content

Minor changes in Serializer Component #8321

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

Closed
watlf opened this issue Aug 30, 2017 · 1 comment
Closed

Minor changes in Serializer Component #8321

watlf opened this issue Aug 30, 2017 · 1 comment
Labels
hasPR A Pull Request has already been submitted for this issue. Serializer

Comments

@watlf
Copy link
Contributor

watlf commented Aug 30, 2017

There are a few arguments in code examples that were missed:
Converting Property Names when Serializing and Deserializing

$json = $serializer->serialize($obj);
// {"org_name": "Acme Inc.", "org_address": "123 Main Street, Big City"}
$objCopy = $serializer->deserialize($json);

It should looks like:
$json = $serializer->serialize($obj, 'json');
// {"org_name": "Acme Inc.", "org_address": "123 Main Street, Big City"}
$objCopy = $serializer->deserialize($json, Company::class, 'json');

watlf added a commit to watlf/symfony-docs that referenced this issue Aug 30, 2017
@watlf
Copy link
Contributor Author

watlf commented Aug 30, 2017

@xabbuh xabbuh added hasPR A Pull Request has already been submitted for this issue. Missing Documentation Serializer labels Aug 31, 2017
xabbuh added a commit that referenced this issue Sep 1, 2017
This PR was submitted for the 3.3 branch but it was merged into the 2.7 branch instead (closes #8322).

Discussion
----------

fix #8321 minor changes in Serializer Component

Commits
-------

02b7732 fix #8321 minor changes in Serializer Component
@xabbuh xabbuh closed this as completed Sep 1, 2017
xabbuh added a commit that referenced this issue Sep 1, 2017
* 2.7:
  Update events.rst
  First parameter to uniqid must be a string
  fix #8321 minor changes in Serializer Component
  Update filesystem.rst
  Update create_custom_field_type.rst
  Use "impersonator user" instead of "impersonating user"
  Update dynamic_form_modification.rst
  Update data_transformers.rst
xabbuh added a commit that referenced this issue Sep 3, 2017
* 2.8: (25 commits)
  [#8231] fix reStructuredText syntax
  Specified import order of config files
  [#7981] revert some changes
  Update upload_file.rst
  Added a missing redirection
  Update validation_group_service_resolver.rst
  Update redirection_map
  Update button_based_validation.rst
  Delete group_service_resolver.rst
  Create validation_group_service_resolver.rst
  [#8290] fix minor typo
  Update the setfacl description.
  Update events.rst
  Fixed a minor syntax issue
  Update phpunit_bridge.rst
  First parameter to uniqid must be a string
  fix #8321 minor changes in Serializer Component
  Update filesystem.rst
  Update associations.rst
  Update proxy_examples.rst
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hasPR A Pull Request has already been submitted for this issue. Serializer
Projects
None yet
Development

No branches or pull requests

2 participants