@@ 263-269 (lines=7) @@ | ||
260 | 'mapping_types' => true, |
|
261 | 'platform_service' => true, |
|
262 | ]; |
|
263 | foreach ($options as $key => $value) { |
|
264 | if (isset($nonRewrittenKeys[$key])) { |
|
265 | continue; |
|
266 | } |
|
267 | $options['master'][$key] = $value; |
|
268 | unset($options[$key]); |
|
269 | } |
|
270 | if (empty($options['wrapperClass'])) { |
|
271 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
272 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Connections\\MasterSlaveConnection'; |
|
@@ 298-304 (lines=7) @@ | ||
295 | 'mapping_types' => true, |
|
296 | 'platform_service' => true, |
|
297 | ]; |
|
298 | foreach ($options as $key => $value) { |
|
299 | if (isset($nonRewrittenKeys[$key])) { |
|
300 | continue; |
|
301 | } |
|
302 | $options['global'][$key] = $value; |
|
303 | unset($options[$key]); |
|
304 | } |
|
305 | if (empty($options['wrapperClass'])) { |
|
306 | // Change the wrapper class only if the user does not already forced using a custom one. |
|
307 | $options['wrapperClass'] = 'Doctrine\\DBAL\\Sharding\\PoolingShardConnection'; |