|
@@ -54,7 +54,7 @@ class FieldType extends AbstractType
|
|
->setAttribute('pattern', $options['pattern'])
|
|
->setAttribute('pattern', $options['pattern'])
|
|
->setAttribute('label', $options['label'] ?: $this->humanize($builder->getName()))
|
|
->setAttribute('label', $options['label'] ?: $this->humanize($builder->getName()))
|
|
->setAttribute('attr', $options['attr'] ?: array())
|
|
->setAttribute('attr', $options['attr'] ?: array())
|
|
- ->setAttribute('invalid_message_template', $options['invalid_message_template'])
|
|
|
|
|
|
+ ->setAttribute('invalid_message', $options['invalid_message'])
|
|
->setAttribute('invalid_message_parameters', $options['invalid_message_parameters'])
|
|
->setAttribute('invalid_message_parameters', $options['invalid_message_parameters'])
|
|
->setData($options['data'])
|
|
->setData($options['data'])
|
|
->addValidator(new DefaultValidator())
|
|
->addValidator(new DefaultValidator())
|
|
@@ -125,7 +125,7 @@ class FieldType extends AbstractType
|
|
'error_mapping' => array(),
|
|
'error_mapping' => array(),
|
|
'label' => null,
|
|
'label' => null,
|
|
'attr' => array(),
|
|
'attr' => array(),
|
|
- 'invalid_message_template' => 'This value is not valid',
|
|
|
|
|
|
+ 'invalid_message' => 'This value is not valid',
|
|
'invalid_message_parameters' => array(),
|
|
'invalid_message_parameters' => array(),
|
|
);
|
|
);
|
|
|
|
|