Skip to content

Commit b9a52dc

Browse files
committed
Merge pull request #223 from doctrine/fix/gh222
Restore addDefaultsIfNotSet() for "default_commit_options"
2 parents 80c9f4d + 8e2e4a5 commit b9a52dc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function getConfigTreeBuilder()
5050
->scalarNode('default_connection')->end()
5151
->scalarNode('default_database')->defaultValue('default')->end()
5252
->arrayNode('default_commit_options')
53+
->addDefaultsIfNotSet()
5354
->children()
5455
->booleanNode('j')->end()
5556
->scalarNode('timeout')->end()

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function testDefaults()
3838
'proxy_namespace' => 'MongoDBODMProxies',
3939
'hydrator_dir' => '%kernel.cache_dir%/doctrine/odm/mongodb/Hydrators',
4040
'hydrator_namespace' => 'Hydrators',
41+
'default_commit_options' => array(),
4142
);
4243

4344
$this->assertEquals($defaults, $options);

0 commit comments

Comments
 (0)