|
@@ 74-80 (lines=7) @@
|
| 71 |
|
// Key that should not be rewritten to the connection config |
| 72 |
|
$excludedKeys = ['default_connection' => true, 'types' => true, 'type' => true]; |
| 73 |
|
$connection = []; |
| 74 |
|
foreach ($v as $key => $value) { |
| 75 |
|
if (isset($excludedKeys[$key])) { |
| 76 |
|
continue; |
| 77 |
|
} |
| 78 |
|
$connection[$key] = $v[$key]; |
| 79 |
|
unset($v[$key]); |
| 80 |
|
} |
| 81 |
|
$v['default_connection'] = isset($v['default_connection']) ? (string) $v['default_connection'] : 'default'; |
| 82 |
|
$v['connections'] = [$v['default_connection'] => $connection]; |
| 83 |
|
|
|
@@ 338-344 (lines=7) @@
|
| 335 |
|
'resolve_target_entity' => true, |
| 336 |
|
]; |
| 337 |
|
$entityManager = []; |
| 338 |
|
foreach ($v as $key => $value) { |
| 339 |
|
if (isset($excludedKeys[$key])) { |
| 340 |
|
continue; |
| 341 |
|
} |
| 342 |
|
$entityManager[$key] = $v[$key]; |
| 343 |
|
unset($v[$key]); |
| 344 |
|
} |
| 345 |
|
$v['default_entity_manager'] = isset($v['default_entity_manager']) ? (string) $v['default_entity_manager'] : 'default'; |
| 346 |
|
$v['entity_managers'] = [$v['default_entity_manager'] => $entityManager]; |
| 347 |
|
|