|
@@ 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 |
|
|
|
@@ 288-294 (lines=7) @@
|
| 285 |
|
'resolve_target_entity' => true, |
| 286 |
|
); |
| 287 |
|
$entityManager = array(); |
| 288 |
|
foreach ($v as $key => $value) { |
| 289 |
|
if (isset($excludedKeys[$key])) { |
| 290 |
|
continue; |
| 291 |
|
} |
| 292 |
|
$entityManager[$key] = $v[$key]; |
| 293 |
|
unset($v[$key]); |
| 294 |
|
} |
| 295 |
|
$v['default_entity_manager'] = isset($v['default_entity_manager']) ? (string) $v['default_entity_manager'] : 'default'; |
| 296 |
|
$v['entity_managers'] = array($v['default_entity_manager'] => $entityManager); |
| 297 |
|
|