Add slaves configuration from config.yml to propel configuration
This commit is contained in:
parent
ff0a883e2d
commit
8f32b8392c
|
@ -106,6 +106,7 @@ class PropelExtension extends Extension
|
|||
$c = array();
|
||||
foreach ($config['connections'] as $name => $conf) {
|
||||
$c['datasources'][$name]['adapter'] = $conf['driver'];
|
||||
$c['datasources'][$name]['slaves']['connection'] = $conf['slaves'];
|
||||
|
||||
foreach (array('dsn', 'user', 'password', 'classname', 'options', 'attributes', 'settings') as $att) {
|
||||
if (isset($conf[$att])) {
|
||||
|
|
Loading…
Reference in a new issue