File tree 1 file changed +2
-3
lines changed
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
170
170
interface was introduced in Symfony 2.7.
171
171
172
172
Sometimes serialized attributes must be named differently than properties
173
- or getter / setter methods of PHP classes.
173
+ or getter/ setter methods of PHP classes.
174
174
175
175
The Serializer Component provides a handy way to translate or map PHP field
176
176
names to serialized names: The Name Converter System.
@@ -183,13 +183,12 @@ Given you have the following object::
183
183
public address;
184
184
}
185
185
186
-
187
186
And in the serialized form, all attributes must be prefixed by ``org_ `` like
188
187
the following::
189
188
190
189
{"org_name": "Acme Inc.", "org_address": "123 Main Street, Big City"}
191
190
192
- A custom Name Converter can handle such cases::
191
+ A custom name converter can handle such cases::
193
192
194
193
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
195
194
You can’t perform that action at this time.
0 commit comments