|
@@ 73-79 (lines=7) @@
|
| 70 |
|
// Key that should not be rewritten to the connection config |
| 71 |
|
$excludedKeys = array('default_connection' => true, 'types' => true, 'type' => true); |
| 72 |
|
$connection = array(); |
| 73 |
|
foreach ($v as $key => $value) { |
| 74 |
|
if (isset($excludedKeys[$key])) { |
| 75 |
|
continue; |
| 76 |
|
} |
| 77 |
|
$connection[$key] = $v[$key]; |
| 78 |
|
unset($v[$key]); |
| 79 |
|
} |
| 80 |
|
$v['default_connection'] = isset($v['default_connection']) ? (string) $v['default_connection'] : 'default'; |
| 81 |
|
$v['connections'] = array($v['default_connection'] => $connection); |
| 82 |
|
|
|
@@ 304-310 (lines=7) @@
|
| 301 |
|
'resolve_target_entity' => true, |
| 302 |
|
); |
| 303 |
|
$entityManager = array(); |
| 304 |
|
foreach ($v as $key => $value) { |
| 305 |
|
if (isset($excludedKeys[$key])) { |
| 306 |
|
continue; |
| 307 |
|
} |
| 308 |
|
$entityManager[$key] = $v[$key]; |
| 309 |
|
unset($v[$key]); |
| 310 |
|
} |
| 311 |
|
$v['default_entity_manager'] = isset($v['default_entity_manager']) ? (string) $v['default_entity_manager'] : 'default'; |
| 312 |
|
$v['entity_managers'] = array($v['default_entity_manager'] => $entityManager); |
| 313 |
|
|