Skip to content

Commit

Permalink
minor #4781 [Serializer] Bad variable name in example (arno14)
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.6 branch instead (closes #4781).

Discussion
----------

[Serializer] Bad variable name in example

Commits
-------

ef4abd1 Typo in Serializer doc
  • Loading branch information
wouterj committed Jan 8, 2015
2 parents ce37b96 + ef4abd1 commit eb56376
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 @@ -310,7 +310,7 @@ when such a case is encountered::
$org->setName('Les-Tilleuls.coop');
$org->setMembers(array($member));

$member->setOrganization($kevin);
$member->setOrganization($org);

echo $serializer->serialize($org, 'json'); // Throws a CircularReferenceException

Expand Down

0 comments on commit eb56376

Please sign in to comment.