Skip to content

Commit

Permalink
Fix wrong variable name in comment
Browse files Browse the repository at this point in the history
The object being updated via deserialize is $person, but in the comment it was wrongly referred to as $obj2
  • Loading branch information
Francesco Abeni authored and wouterj committed May 27, 2016
1 parent b29d2a3 commit 682bb81
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 682bb81

Please sign in to comment.