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 7bbf35e + ddd1bed commit 864be0aCopy full SHA for 864be0a
components/config/definition.rst
@@ -350,6 +350,13 @@ In order to maintain the array keys use the ``useAttributeAsKey()`` method::
350
->end()
351
;
352
353
+.. note::
354
+
355
+ In YAML, the ``'name'`` argument of ``useAttributeAsKey()`` has a special
356
+ meaning and refers to the key of the map (``sf_connection`` and ``default``
357
+ in this example). If a child node was defined for the ``connections`` node
358
+ with the key ``name``, then that key of the map would be lost.
359
360
The argument of this method (``name`` in the example above) defines the name of
361
the attribute added to each XML node to differentiate them. Now you can use the
362
same YAML configuration shown before or the following XML configuration:
0 commit comments