|
@@ -77,7 +77,8 @@ class Configuration implements ConfigurationInterface
|
|
'wrapper_class',
|
|
'wrapper_class',
|
|
'platform_service',
|
|
'platform_service',
|
|
'charset',
|
|
'charset',
|
|
- 'logging'
|
|
|
|
|
|
+ 'logging',
|
|
|
|
+ 'mapping_types',
|
|
) as $key) {
|
|
) as $key) {
|
|
if (array_key_exists($key, $v)) {
|
|
if (array_key_exists($key, $v)) {
|
|
$connection[$key] = $v[$key];
|
|
$connection[$key] = $v[$key];
|
|
@@ -115,6 +116,7 @@ class Configuration implements ConfigurationInterface
|
|
->requiresAtLeastOneElement()
|
|
->requiresAtLeastOneElement()
|
|
->useAttributeAsKey('name')
|
|
->useAttributeAsKey('name')
|
|
->prototype('array')
|
|
->prototype('array')
|
|
|
|
+ ->fixXmlConfig('mapping_type')
|
|
->children()
|
|
->children()
|
|
->scalarNode('dbname')->end()
|
|
->scalarNode('dbname')->end()
|
|
->scalarNode('host')->defaultValue('localhost')->end()
|
|
->scalarNode('host')->defaultValue('localhost')->end()
|
|
@@ -134,6 +136,10 @@ class Configuration implements ConfigurationInterface
|
|
->useAttributeAsKey('key')
|
|
->useAttributeAsKey('key')
|
|
->prototype('scalar')->end()
|
|
->prototype('scalar')->end()
|
|
->end()
|
|
->end()
|
|
|
|
+ ->arrayNode('mapping_types')
|
|
|
|
+ ->useAttributeAsKey('name')
|
|
|
|
+ ->prototype('scalar')->end()
|
|
|
|
+ ->end()
|
|
->end()
|
|
->end()
|
|
->end()
|
|
->end()
|
|
;
|
|
;
|