@@ 275-281 (lines=7) @@ | ||
272 | 'mapping_types' => true, |
|
273 | 'platform_service' => true, |
|
274 | ]; |
|
275 | foreach ($options as $key => $value) { |
|
276 | if (isset($nonRewrittenKeys[$key])) { |
|
277 | continue; |
|
278 | } |
|
279 | $options['master'][$key] = $value; |
|
280 | unset($options[$key]); |
|
281 | } |
|
282 | if (empty($options['wrapperClass'])) { |
|
283 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
284 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Connections\\MasterSlaveConnection'; |
|
@@ 310-316 (lines=7) @@ | ||
307 | 'mapping_types' => true, |
|
308 | 'platform_service' => true, |
|
309 | ]; |
|
310 | foreach ($options as $key => $value) { |
|
311 | if (isset($nonRewrittenKeys[$key])) { |
|
312 | continue; |
|
313 | } |
|
314 | $options['global'][$key] = $value; |
|
315 | unset($options[$key]); |
|
316 | } |
|
317 | if (empty($options['wrapperClass'])) { |
|
318 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
319 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection'; |