We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f2cb0b + 86a526a commit 659e443Copy full SHA for 659e443
components/config/definition.rst
@@ -346,6 +346,13 @@ In order to maintain the array keys use the ``useAttributeAsKey()`` method::
346
->end()
347
;
348
349
+.. note::
350
+
351
+ In YAML, the ``'name'`` argument of ``useAttributeAsKey()`` has a special
352
+ meaning and refers to the key of the map (``sf_connection`` and ``default``
353
+ in this example). If a child node was defined for the ``connections`` node
354
+ with the key ``name``, then that key of the map would be lost.
355
356
The argument of this method (``name`` in the example above) defines the name of
357
the attribute added to each XML node to differentiate them. Now you can use the
358
same YAML configuration shown before or the following XML configuration:
0 commit comments