Fixed default connection
This commit is contained in:
parent
69c14b871c
commit
f1e3438e6a
|
@ -106,6 +106,11 @@ class PropelExtension extends Extension
|
|||
$c['datasources'][$name]['connection']['settings']['charset'] = array('value' => $container->getParameter('propel.charset'));
|
||||
}
|
||||
|
||||
// Alias the default connection if not defined
|
||||
if (!isset($c['datasources']['default'])) {
|
||||
$c['datasources']['default'] = $c['datasources'][$connectionName];
|
||||
}
|
||||
|
||||
$container->getDefinition('propel.configuration')->setArguments(array($c));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue