From 622e52c550c8582d291b3eeb3304856551502a24 Mon Sep 17 00:00:00 2001 From: Falk Doering Date: Fri, 13 Sep 2013 13:34:24 +0200 Subject: [PATCH] Use doctrine dbal connection name, rename doctrine_dbal_id into connection_name --- DependencyInjection/Factory/DoctrineDbalAdapterFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DependencyInjection/Factory/DoctrineDbalAdapterFactory.php b/DependencyInjection/Factory/DoctrineDbalAdapterFactory.php index 3d78367..e604042 100644 --- a/DependencyInjection/Factory/DoctrineDbalAdapterFactory.php +++ b/DependencyInjection/Factory/DoctrineDbalAdapterFactory.php @@ -21,7 +21,7 @@ class DoctrineDbalAdapterFactory implements AdapterFactoryInterface { $definition = $container ->setDefinition($id, new DefinitionDecorator('knp_gaufrette.adapter.doctrine_dbal')) - ->addArgument(new Reference($config['doctrine_dbal_id'])) + ->addArgument(new Reference('doctrine.dbal.' . $config['connection_name'] . '_connection')) ->addArgument($config['table']) ; @@ -45,7 +45,7 @@ class DoctrineDbalAdapterFactory implements AdapterFactoryInterface { $builder ->children() - ->scalarNode('doctrine_dbal_id')->isRequired()->cannotBeEmpty()->end() + ->scalarNode('connection_name')->isRequired()->cannotBeEmpty()->end() ->scalarNode('table')->isRequired()->cannotBeEmpty()->end() ->arrayNode('columns') ->children()