public function updateUser(UserInterface $user) { $this->getEntityManager()->persist($user); $this->getEntityManager()->flush(); }