Skip to content

Commit

Permalink
Merge pull request #223 from doctrine/fix/gh222
Browse files Browse the repository at this point in the history
Restore addDefaultsIfNotSet() for "default_commit_options"
  • Loading branch information
jmikola committed Feb 4, 2014
2 parents 80c9f4d + 8e2e4a5 commit b9a52dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function getConfigTreeBuilder()
->scalarNode('default_connection')->end()
->scalarNode('default_database')->defaultValue('default')->end()
->arrayNode('default_commit_options')
->addDefaultsIfNotSet()
->children()
->booleanNode('j')->end()
->scalarNode('timeout')->end()
Expand Down
1 change: 1 addition & 0 deletions Tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function testDefaults()
'proxy_namespace' => 'MongoDBODMProxies',
'hydrator_dir' => '%kernel.cache_dir%/doctrine/odm/mongodb/Hydrators',
'hydrator_namespace' => 'Hydrators',
'default_commit_options' => array(),
);

$this->assertEquals($defaults, $options);
Expand Down

0 comments on commit b9a52dc

Please sign in to comment.