Skip to content

Commit eb56376

Browse files
committed
minor #4781 [Serializer] Bad variable name in example (arno14)
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
2 parents ce37b96 + ef4abd1 commit eb56376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ when such a case is encountered::
310310
$org->setName('Les-Tilleuls.coop');
311311
$org->setMembers(array($member));
312312

313-
$member->setOrganization($kevin);
313+
$member->setOrganization($org);
314314

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

0 commit comments

Comments
 (0)