Ojs\SiteBundle\Controller\UserController::deleteConnectedAccountAction PHP 메소드

deleteConnectedAccountAction() 공개 메소드

public deleteConnectedAccountAction ( Ojs\UserBundle\Entity\UserOauthAccount $userOauthAccount ) : RedirectResponse
$userOauthAccount Ojs\UserBundle\Entity\UserOauthAccount
리턴 Symfony\Component\HttpFoundation\RedirectResponse
    public function deleteConnectedAccountAction(UserOauthAccount $userOauthAccount)
    {
        $em = $this->getDoctrine()->getManager();
        $em->remove($userOauthAccount);
        $em->flush();
        return $this->redirect($this->get('router')->generate('ojs_user_connected_account'));
    }