]> Raphaƫl G. Git Repositories - userbundle/blobdiff - Form/RegisterType.php
Version 0.5.5
[userbundle] / Form / RegisterType.php
index 09eea5c6bf4eddf403e3853bd416ed6e6c0a41e3..def9e7120165276c448050405945ca30d7432714 100644 (file)
@@ -87,8 +87,11 @@ class RegisterType extends CaptchaType {
         * {@inheritdoc}
         */
        public function configureOptions(OptionsResolver $resolver): void {
         * {@inheritdoc}
         */
        public function configureOptions(OptionsResolver $resolver): void {
+               //Call parent configure options
+               parent::configureOptions($resolver);
+
                //Set defaults
                //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');
 
                //Add extra civility option
                $resolver->setAllowedTypes('civility', 'boolean');