Skip to content

Commit 06b7114

Browse files
committed
Improve properties example on debug serializer result
1 parent 7175f41 commit 06b7114

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

serializer.rst

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -502,33 +502,33 @@ given class:
502502
$ php bin/console debug:serializer 'App\Entity\Book'
503503
504504
App\Entity\Book
505-
--------------------
506-
507-
+----------------+------------------------------------------------------------+
508-
| Property | Options |
509-
+----------------+------------------------------------------------------------+
510-
| firstArgument | [ |
511-
| | "groups" => [ |
512-
| | "book:read", |
513-
| | "book:write", |
514-
| | ] |
515-
| | "maxDepth" => 1, |
516-
| | "serializedName" => "first_argument" |
517-
| | "ignore" => false |
518-
| | "normalizationContexts" => [], |
519-
| | "denormalizationContexts" => [] |
520-
| | ] |
521-
| secondArgument | [ |
522-
| | "groups" => [ |
523-
| | "book:read", |
524-
| | ] |
525-
| | "maxDepth" => null, |
526-
| | "serializedName" => null |
527-
| | "ignore" => false |
528-
| | "normalizationContexts" => [], |
529-
| | "denormalizationContexts" => [] |
530-
| | ] |
531-
+----------------+------------------------------------------------------------+
505+
---------------
506+
507+
+----------+------------------------------------------------------------+
508+
| Property | Options |
509+
+----------+------------------------------------------------------------+
510+
| name | [ |
511+
| | "groups" => [ |
512+
| | "book:read", |
513+
| | "book:write", |
514+
| | ] |
515+
| | "maxDepth" => 1, |
516+
| | "serializedName" => "book_name" |
517+
| | "ignore" => false |
518+
| | "normalizationContexts" => [], |
519+
| | "denormalizationContexts" => [] |
520+
| | ] |
521+
| isbn | [ |
522+
| | "groups" => [ |
523+
| | "book:read", |
524+
| | ] |
525+
| | "maxDepth" => null, |
526+
| | "serializedName" => null |
527+
| | "ignore" => false |
528+
| | "normalizationContexts" => [], |
529+
| | "denormalizationContexts" => [] |
530+
| | ] |
531+
+----------+------------------------------------------------------------+
532532
533533
.. versionadded:: 6.3
534534

0 commit comments

Comments
 (0)