Ignore Password when user updates profile with FOSUserBundle
问题 I am using FOSUserBundle and I am trying to create a page that allows a user to update their user profile. The problem I am facing is that my form does not require that the user reenter their password if they don't want to change/update their password. So when a user submits the form with an empty password the database will be updated with an empty string, and the user will not be able to log in. How can I get my form to ignore updating the password field if it is not set? Below is the code I