File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -213,8 +213,9 @@ Before defining the children of an array node, you can provide options like:
213
213
If any child nodes have default values, use them if explicit values
214
214
haven't been provided.
215
215
``normalizeKeys(false) ``
216
- If called (with ``false ``), keys with dashes are *not * normaled to underscores.
217
- It is recommended to use this to avoid this unnecessary normalization.
216
+ If called (with ``false ``), keys with dashes are *not * normalized to underscores.
217
+ It is recommended to use this with prototype nodes where the user will define
218
+ a key-value map, to avoid an unnecessary transformation.
218
219
219
220
A basic prototyped array configuration can be defined as follows::
220
221
@@ -315,9 +316,10 @@ the Symfony Config component treats arrays as lists by default.
315
316
316
317
.. note ::
317
318
318
- As of writing this, there is an inconsistency: if only one file is processed,
319
- the keys (i.e. ``sf_connection `` and ``default ``) are *not * lost. But if more
320
- than one file is processed, the keys are lost as described above.
319
+ As of writing this, there is an inconsistency: if only one file provides the
320
+ configuration in question, the keys (i.e. ``sf_connection `` and ``default ``)
321
+ are *not * lost. But if more than one file provides the configuration, the keys
322
+ are lost as described above.
321
323
322
324
In order to maintain the array keys use the ``useAttributeAsKey() `` method::
323
325
You can’t perform that action at this time.
0 commit comments