public function findByAccountIdentifierAndAuthenticationProviderName($accountIdentifier, $authenticationProviderName)
    {
        $query = $this->createQuery();
        return $query->matching(
            $query->logicalAnd(
                $query->equals('accountIdentifier', $accountIdentifier),
                $query->equals('authenticationProviderName', $authenticationProviderName)
            )
        )->execute()->getFirst();
    }
public function findByAccountIdentifierAndAuthenticationProviderName($accountIdentifier, $authenticationProviderName)
    {
        $query = $this->createQuery();
        return $query->matching(
            $query->logicalAnd(
                $query->equals('accountIdentifier', $accountIdentifier),
                $query->equals('authenticationProviderName', $authenticationProviderName)
            )
        )->execute()->getFirst();
    }
public function findByAccountIdentifierAndAuthenticationProviderName ( $ accountIdentifier , $ authenticationProviderName ) { $ query = $ this -> createQuery ( ) ; return $ query -> matching ( $ query -> logicalAnd ( $ query -> equals ( 'accountIdentifier' , $ accountIdentifier ) , $ query -> equals ( 'authenticationProviderName' , $ authenticationProviderName ) ) ) -> execute ( ) -> getFirst ( ) ; }
Returns the account for a specific authentication provider with the given identifier

@param string $accountIdentifier The account identifier
@param string $authenticationProviderName The authentication provider name
@return Account
Returns the account for a specific authentication provider with the given identifier