@@ 68-74 (lines=7) @@ | ||
65 | // Key that should not be rewritten to the connection config |
|
66 | $excludedKeys = ['default_connection' => true, 'types' => true, 'type' => true]; |
|
67 | $connection = []; |
|
68 | foreach ($v as $key => $value) { |
|
69 | if (isset($excludedKeys[$key])) { |
|
70 | continue; |
|
71 | } |
|
72 | $connection[$key] = $v[$key]; |
|
73 | unset($v[$key]); |
|
74 | } |
|
75 | $v['default_connection'] = isset($v['default_connection']) ? (string) $v['default_connection'] : 'default'; |
|
76 | $v['connections'] = [$v['default_connection'] => $connection]; |
|
77 | ||
@@ 311-317 (lines=7) @@ | ||
308 | 'resolve_target_entity' => true, |
|
309 | ]; |
|
310 | $entityManager = []; |
|
311 | foreach ($v as $key => $value) { |
|
312 | if (isset($excludedKeys[$key])) { |
|
313 | continue; |
|
314 | } |
|
315 | $entityManager[$key] = $v[$key]; |
|
316 | unset($v[$key]); |
|
317 | } |
|
318 | $v['default_entity_manager'] = isset($v['default_entity_manager']) ? (string) $v['default_entity_manager'] : 'default'; |
|
319 | $v['entity_managers'] = [$v['default_entity_manager'] => $entityManager]; |
|
320 |