I want to override the edit user form in FOSUserbundle to hide some fields, I created my type extending AbstractType, I know how to add fields but not how to hide existing ones like username and/or password. Actually I can hide the username doing
$builder->remove('username');
how can I hide the password? doing $builder->remove('password'); or $builder->remove('current_password'); doesn't work
thanks