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