Skip to content

Commit

Permalink
bug #6619 Fix wrong variable name in comment (zanardigit)
Browse files Browse the repository at this point in the history
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #6619).

Discussion
----------

Fix wrong variable name in comment

The object being updated via deserialize is $person, but in the comment it was wrongly referred to as $obj2

Commits
-------

682bb81 Fix wrong variable name in comment
  • Loading branch information
wouterj committed May 27, 2016
2 parents b29d2a3 + 682bb81 commit e4c56e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ The serializer can also be used to update an existing object::
EOF;

$serializer->deserialize($data, 'Acme\Person', 'xml', array('object_to_populate' => $person));
// $obj2 = Acme\Person(name: 'foo', age: '69', sportsman: true)
// $person = Acme\Person(name: 'foo', age: '69', sportsman: true)

This is a common need when working with an ORM.

Expand Down

0 comments on commit e4c56e4

Please sign in to comment.