FriendsOfSymfony/FOSUserBundle — Issue #403: Entity user listener wont set password on update
Author: ddebree
Created: 2011-11-14 07:34:17+00:00
State: open

When the user listener is used to update the password (and Canonical) field instead of going via the manager class, there is a potential that Doctrine will not update the password fields. The reason is that when the preUpdate function is called, Doctrine has already decided which fields to update, and what values to update to. So when the values on the object itself are set the changes are ignored.
To get around this, the update must also update the PreUpdateEventArgs object with any changes that must be made.