diff --git a/Form/Type/CompletionContactType.php b/Form/Type/CompletionContactType.php
index ac1a2b0c..8a382f49 100644
--- a/Form/Type/CompletionContactType.php
+++ b/Form/Type/CompletionContactType.php
@@ -13,6 +13,7 @@
use Sulu\Bundle\ContactBundle\Entity\Contact;
use Symfony\Component\Form\AbstractType;
+use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
@@ -29,11 +30,11 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$contact = $builder->getData();
if (!$contact->getFirstName()) {
- $builder->add('first_name', 'text');
+ $builder->add('firstName', TextType::class);
}
if (!$contact->getLastName()) {
- $builder->add('last_name', 'text');
+ $builder->add('lastName', TextType::class);
}
}
diff --git a/Form/Type/ProfileContactType.php b/Form/Type/ProfileContactType.php
index 41cbe189..1a7c7cda 100644
--- a/Form/Type/ProfileContactType.php
+++ b/Form/Type/ProfileContactType.php
@@ -44,9 +44,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
]
);
- $builder->add('first_name', TextType::class);
- $builder->add('last_name', TextType::class);
- $builder->add('main_email', EmailType::class);
+ $builder->add('firstName', TextType::class);
+ $builder->add('lastName', TextType::class);
+ $builder->add('mainEmail', EmailType::class);
$builder->add('avatar', FileType::class, ['mapped' => false, 'required' => false]);
$builder->add(
diff --git a/Form/Type/RegistrationContactType.php b/Form/Type/RegistrationContactType.php
index e0015771..a0157367 100644
--- a/Form/Type/RegistrationContactType.php
+++ b/Form/Type/RegistrationContactType.php
@@ -27,8 +27,8 @@ class RegistrationContactType extends AbstractType
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
- $builder->add('first_name', TextType::class);
- $builder->add('last_name', TextType::class);
+ $builder->add('firstName', TextType::class);
+ $builder->add('lastName', TextType::class);
}
/**
diff --git a/Resources/config/validation.xml b/Resources/config/validation.xml
index 3d80b451..f1cee5de 100644
--- a/Resources/config/validation.xml
+++ b/Resources/config/validation.xml
@@ -47,9 +47,16 @@
+
+
+
+
+
+
+
-
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+