Default values for options and attributes config arrays

This commit is contained in:
Miroslav Oujesky 2014-11-08 01:21:08 +01:00
parent 3d74fbdb94
commit b42ef6b83b

View file

@ -50,11 +50,13 @@ class Configuration extends PropelConfiguration
->scalarNode('user')->isRequired()->end()
->scalarNode('password')->isRequired()->treatNullLike('')->end()
->arrayNode('options')
->addDefaultsIfNotSet()
->children()
->booleanNode('ATTR_PERSISTENT')->defaultFalse()->end()
->end()
->end()
->arrayNode('attributes')
->addDefaultsIfNotSet()
->children()
->booleanNode('ATTR_EMULATE_PREPARES')->defaultFalse()->end()
->end()