@@ 254-260 (lines=7) @@ | ||
251 | 'mapping_types' => true, |
|
252 | 'platform_service' => true, |
|
253 | ]; |
|
254 | foreach ($options as $key => $value) { |
|
255 | if (isset($nonRewrittenKeys[$key])) { |
|
256 | continue; |
|
257 | } |
|
258 | $options['master'][$key] = $value; |
|
259 | unset($options[$key]); |
|
260 | } |
|
261 | if (empty($options['wrapperClass'])) { |
|
262 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
263 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Connections\\MasterSlaveConnection'; |
|
@@ 288-294 (lines=7) @@ | ||
285 | 'mapping_types' => true, |
|
286 | 'platform_service' => true, |
|
287 | ]; |
|
288 | foreach ($options as $key => $value) { |
|
289 | if (isset($nonRewrittenKeys[$key])) { |
|
290 | continue; |
|
291 | } |
|
292 | $options['global'][$key] = $value; |
|
293 | unset($options[$key]); |
|
294 | } |
|
295 | if (empty($options['wrapperClass'])) { |
|
296 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
297 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection'; |