From 6679be647ead5c9ac5730e1b96d9ea426c099328 Mon Sep 17 00:00:00 2001 From: Liviu Balan Date: Fri, 1 Jun 2018 12:16:53 +0300 Subject: [PATCH] Add all serialized class properties --- components/serializer.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/serializer.rst b/components/serializer.rst index 3c50d1b193c..3f31b8edaab 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -129,7 +129,7 @@ use the Serializer service created before:: $jsonContent = $serializer->serialize($person, 'json'); - // $jsonContent contains {"name":"foo","age":99,"sportsperson":false} + // $jsonContent contains {"name":"foo","age":99,"sportsperson":false,"createdAt":null} echo $jsonContent; // or return it in a Response