$defaults = [
'class' => [
'group' => 'Rapsys\\UserBundle\\Entity\\Group',
- 'title' => 'Rapsys\\UserBundle\\Entity\\Title',
+ 'civility' => 'Rapsys\\UserBundle\\Entity\\Civility',
'user' => 'Rapsys\\UserBundle\\Entity\\User'
],
'default' => [
- 'title' => 'Mister',
+ 'civility' => 'Mister',
'group' => [ 'User' ]
],
'route' => [
'translate' => [],
'locales' => '%kernel.translator.fallbacks%',
'languages' => [
- 'en' => 'English'
+ 'en-gb' => 'English'
],
'contact' => [
'name' => 'John Doe',
->addDefaultsIfNotSet()
->children()
->scalarNode('group')->cannotBeEmpty()->defaultValue($defaults['class']['group'])->end()
- ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['class']['title'])->end()
+ ->scalarNode('civility')->cannotBeEmpty()->defaultValue($defaults['class']['civility'])->end()
->scalarNode('user')->cannotBeEmpty()->defaultValue($defaults['class']['user'])->end()
->end()
->end()
->arrayNode('default')
->addDefaultsIfNotSet()
->children()
- ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['default']['title'])->end()
+ ->scalarNode('civility')->cannotBeEmpty()->defaultValue($defaults['default']['civility'])->end()
->arrayNode('group')
->treatNullLike(array())
->defaultValue($defaults['default']['group'])