diff --git a/components/config/definition.rst b/components/config/definition.rst index 321ce49cd96..f0291c5dfe0 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -320,8 +320,8 @@ In order to maintain the array keys use the ``useAttributeAsKey()`` method:: ->fixXmlConfig('connection') ->children() ->arrayNode('connections') + ->useAttributeAsKey('name') ->prototype('array') - ->useAttributeAsKey('name') ->children() ->scalarNode('table')->end() ->scalarNode('user')->end()