@@ 268-274 (lines=7) @@ | ||
265 | 'mapping_types' => true, |
|
266 | 'platform_service' => true, |
|
267 | ]; |
|
268 | foreach ($options as $key => $value) { |
|
269 | if (isset($nonRewrittenKeys[$key])) { |
|
270 | continue; |
|
271 | } |
|
272 | $options['master'][$key] = $value; |
|
273 | unset($options[$key]); |
|
274 | } |
|
275 | if (empty($options['wrapperClass'])) { |
|
276 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
277 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Connections\\MasterSlaveConnection'; |
|
@@ 303-309 (lines=7) @@ | ||
300 | 'mapping_types' => true, |
|
301 | 'platform_service' => true, |
|
302 | ]; |
|
303 | foreach ($options as $key => $value) { |
|
304 | if (isset($nonRewrittenKeys[$key])) { |
|
305 | continue; |
|
306 | } |
|
307 | $options['global'][$key] = $value; |
|
308 | unset($options[$key]); |
|
309 | } |
|
310 | if (empty($options['wrapperClass'])) { |
|
311 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
312 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection'; |