File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ Circular references are common when dealing with entity relations::
301
301
302
302
To avoid infinite loops, :class: `Symfony\\ Component\\ Serializer\\ Normalizer\\ GetSetMethodNormalizer `
303
303
throws a :class: `Symfony\\ Component\\ Serializer\\ Exception\\ CircularReferenceException `
304
- when such case is encountered::
304
+ when such a case is encountered::
305
305
306
306
$member = new Member();
307
307
$member->setName('Kévin');
@@ -315,8 +315,8 @@ when such case is encountered::
315
315
echo $serializer->serialize($org, 'json'); // Throws a CircularReferenceException
316
316
317
317
The ``setCircularReferenceLimit() `` method of this normalizer sets the number
318
- of times serializing the same object must occur before considering being
319
- in a circular reference. Its default value is ``1 ``.
318
+ of times it will serialize the same object before considering it a circular
319
+ reference. Its default value is ``1 ``.
320
320
321
321
Instead of throwing an exception, circular references can also be handled
322
322
by custom callables. This is especially useful when serializing entities
You can’t perform that action at this time.
0 commit comments