@@ 289-295 (lines=7) @@ | ||
286 | 'mapping_types' => true, |
|
287 | 'platform_service' => true, |
|
288 | ]; |
|
289 | foreach ($options as $key => $value) { |
|
290 | if (isset($nonRewrittenKeys[$key])) { |
|
291 | continue; |
|
292 | } |
|
293 | $options['global'][$key] = $value; |
|
294 | unset($options[$key]); |
|
295 | } |
|
296 | if (empty($options['wrapperClass'])) { |
|
297 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
298 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection'; |
|
@@ 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'; |