@@ 65-71 (lines=7) @@ | ||
62 | // Key that should not be rewritten to the connection config |
|
63 | $excludedKeys = ['default_connection' => true, 'types' => true, 'type' => true]; |
|
64 | $connection = []; |
|
65 | foreach ($v as $key => $value) { |
|
66 | if (isset($excludedKeys[$key])) { |
|
67 | continue; |
|
68 | } |
|
69 | $connection[$key] = $v[$key]; |
|
70 | unset($v[$key]); |
|
71 | } |
|
72 | $v['default_connection'] = isset($v['default_connection']) ? (string) $v['default_connection'] : 'default'; |
|
73 | $v['connections'] = [$v['default_connection'] => $connection]; |
|
74 | ||
@@ 323-329 (lines=7) @@ | ||
320 | 'resolve_target_entity' => true, |
|
321 | ]; |
|
322 | $entityManager = []; |
|
323 | foreach ($v as $key => $value) { |
|
324 | if (isset($excludedKeys[$key])) { |
|
325 | continue; |
|
326 | } |
|
327 | $entityManager[$key] = $v[$key]; |
|
328 | unset($v[$key]); |
|
329 | } |
|
330 | $v['default_entity_manager'] = isset($v['default_entity_manager']) ? (string) $v['default_entity_manager'] : 'default'; |
|
331 | $v['entity_managers'] = [$v['default_entity_manager'] => $entityManager]; |
|
332 |