OAuth/UserProvider.php
protected function getExistingIdentity( UserResponseInterface $response )
    {
        $repo = $this->om->getRepository( $this->userIdentityClass );   // wrong class
        return $repo->findOneBy( array(
            'identifier' => $response->getUsername(),
            'type' => $response->getResourceOwner()->getName(),
        ));
    }
protected function getExistingIdentity( UserResponseInterface $response )
    {
        $repo = $this->om->getRepository( $this->userIdentityClass );   // wrong class
        return $repo->findOneBy( array(
            'identifier' => $response->getUsername(),
            'type' => $response->getResourceOwner()->getName(),
        ));
    }
protected function getExistingIdentity ( UserResponseInterface $ response ) { $ repo = $ this -> om -> getRepository ( $ this -> userIdentityClass ) ; // wrong class return $ repo -> findOneBy ( array ( 'identifier' => $ response -> getUsername ( ) , 'type' => $ response -> getResourceOwner ( ) -> getName ( ) , ) ) ; }
Checks whether the authenticating Identity already exists

@param \HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface $response
@return \Userfriendly\Bundle\SocialUserBundle\Model\UserIdentity
Checks whether the authenticating Identity already exists