8000 Add all serialized class properties · symfony/symfony-docs@854cb23 · GitHub
[go: up one dir, main page]

Skip to content

Commit 854cb23

Browse files
liviubalanjaviereguiluz
authored andcommitted
Add all serialized class properties
1 parent 1775afb commit 854cb23

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
@@ -135,7 +135,7 @@ use the Serializer service created before::
135135

136136
$jsonContent = $serializer->serialize($person, 'json');
137137

138-
// $jsonContent contains {"name":"foo","age":99,"sportsperson":false}
138+
// $jsonContent contains {"name":"foo","age":99,"sportsperson":false,"createdAt":null}
139139

140140
echo $jsonContent; // or return it in a Response
141141

0 commit comments

Comments
 (0)
0