public function addUserSocialAccount(User $user, $serviceName, AbstractUser $response)
    {
        $user->has_social_integrations = true;
        $user->save();
        // create relation for new user and social integration
        $this->addSocialRelation($user, $serviceName, $response);
        return $user;
    }
public function addUserSocialAccount(User $user, $serviceName, AbstractUser $response)
    {
        $user->has_social_integrations = true;
        $user->save();
        // create relation for new user and social integration
        $this->addSocialRelation($user, $serviceName, $response);
        return $user;
    }
public function addUserSocialAccount ( User $ user , $ serviceName , AbstractUser $ response ) { $ user -> has_social_integrations = true ; $ user -> save ( ) ; // create relation for new user and social integration $ this -> addSocialRelation ( $ user , $ serviceName , $ response ) ; return $ user ; }
Function adds new social account for existing user.

@param $user        User user entity
@param $serviceName string name of social service
@param $response    AbstractUser response data

@return User
Function adds new social account for existing user .