-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Labels
Comments
watlf
added a commit
to watlf/symfony-docs
that referenced
this issue
Aug 30, 2017
xabbuh
pushed a commit
that referenced
this issue
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
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');
The text was updated successfully, but these errors were encountered: