public function enable(User $user) { $user->enable(); $this->objectManager->persist($user); $this->objectManager->flush(); return $user; }