Skip to content

Commit 8c10471

Browse files
committed
minor #13499 Update serializer.rst (amine-betari)
This PR was merged into the 4.4 branch. Discussion ---------- Update serializer.rst Add the path correctly for the Person model Commits ------- 66c0275 Update serializer.rst
2 parents c4a2178 + 66c0275 commit 8c10471

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
@@ -126,7 +126,7 @@ exists in your project::
126126
Now, if you want to serialize this object into JSON, you only need to
127127
use the Serializer service created before::
128128

129-
$person = new App\Model\Person();
129+
$person = new \App\Model\Person();
130130
$person->setName('foo');
131131
$person->setAge(99);
132132
$person->setSportsperson(false);

0 commit comments

Comments
 (0)