setPassword($newEncodedPassword); $this->_em->persist($user); $this->_em->flush(); } }