Introduce builtin doctrine provider and finder

This commit is contained in:
ornicar 2011-04-20 13:53:59 -07:00
commit eba893495d
11 changed files with 391 additions and 166 deletions

View file

@ -86,6 +86,30 @@ class Configuration
->useAttributeAsKey('name')
->prototype('array')
->treatNullLike(array())
->children()
->arrayNode('doctrine')
->addDefaultsIfNotSet()
->children()
->scalarNode('driver')->end()
->scalarNode('model')->end()
->scalarNode('identifier')->defaultValue('id')->end()
->arrayNode('provider')
->addDefaultsIfNotSet()
->children()
->scalarNode('query_builder_method')->defaultValue('createQueryBuilder')->end()
->scalarNode('batch_size')->defaultValue(100)->end()
->scalarNode('clear_object_manager')->defaultTrue()->end()
->end()
->end()
->arrayNode('finder')
->addDefaultsIfNotSet()
->children()
->scalarNode('hydrate')->defaultTrue()->end()
->end()
->end()
->end()
->end()
->end()
->append($this->getMappingsNode())
->end()
;