public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->remove('email');
        $builder->remove('pseudo');
        $builder->remove('nom');
        $builder->remove('prenom');
        $builder->remove('username');
        $builder->remove('roles');
        $builder->remove('isActive');
        $builder->add('current_password', PasswordType::class, array(
            'label' => 'Mot de passe actuel',
            'mapped' => false,
            'constraints' => new UserPassword(array('message' => 'La valeur doit être le mot de passe actuel de votre compte.'))
        ));
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->remove('email');
        $builder->remove('pseudo');
        $builder->remove('nom');
        $builder->remove('prenom');
        $builder->remove('username');
        $builder->remove('roles');
        $builder->remove('isActive');
        $builder->add('current_password', PasswordType::class, array(
            'label' => 'Mot de passe actuel',
            'mapped' => false,
            'constraints' => new UserPassword(array('message' => 'La valeur doit être le mot de passe actuel de votre compte.'))
        ));
    }
{@inheritdoc}