X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/74e3f2ed750f7c1a36a800f152e8db78cf9cbd4d..d4954d9ad08c5f221d89397e532e23ebee6d5fe0:/Form/RegisterType.php diff --git a/Form/RegisterType.php b/Form/RegisterType.php index 09eea5c..def9e71 100644 --- a/Form/RegisterType.php +++ b/Form/RegisterType.php @@ -87,8 +87,11 @@ class RegisterType extends CaptchaType { * {@inheritdoc} */ public function configureOptions(OptionsResolver $resolver): void { + //Call parent configure options + parent::configureOptions($resolver); + //Set defaults - $resolver->setDefaults(['error_bubbling' => true, 'civility' => true, 'civility_class' => 'RapsysUserBundle:Civility', 'civility_default' => null, 'mail' => true, 'password' => true, 'password_repeated' => true, 'forename' => true, 'surname' => true, 'active' => false, 'enable' => false]); + $resolver->setDefaults(['error_bubbling' => true, 'civility' => true, 'civility_class' => 'Rapsys\UserBundle\Entity\Civility', 'civility_default' => null, 'mail' => true, 'password' => true, 'password_repeated' => true, 'forename' => true, 'surname' => true, 'active' => false, 'enable' => false]); //Add extra civility option $resolver->setAllowedTypes('civility', 'boolean');