File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ Converting Property Names when Serializing and Deserializing
170170 interface was introduced in Symfony 2.7.
171171
172172Sometimes serialized attributes must be named differently than properties
173- or getter / setter methods of PHP classes.
173+ or getter/ setter methods of PHP classes.
174174
175175The Serializer Component provides a handy way to translate or map PHP field
176176names to serialized names: The Name Converter System.
@@ -183,13 +183,12 @@ Given you have the following object::
183183 public address;
184184 }
185185
186-
187186And in the serialized form, all attributes must be prefixed by ``org_ `` like
188187the following::
189188
190189 {"org_name": "Acme Inc.", "org_address": "123 Main Street, Big City"}
191190
192- A custom Name Converter can handle such cases::
191+ A custom name converter can handle such cases::
193192
194193 use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
195194
You can’t perform that action at this time.
0 commit comments