src/Auth/HybridAuthAuthenticate.php
protected function _query($identifier)
    {
        list(, $userAlias) = pluginSplit($this->_config['userModel']);
        $provider = $this->adapter()->id;

        return $this->_profileModel->find()
            ->where([
                $this->_profileModel->aliasField('provider') => $provider,
                $this->_profileModel->aliasField('identifier') => $identifier
            ]);
    }
protected function _query($identifier)
    {
        list(, $userAlias) = pluginSplit($this->_config['userModel']);
        $provider = $this->adapter()->id;

        return $this->_profileModel->find()
            ->where([
                $this->_profileModel->aliasField('provider') => $provider,
                $this->_profileModel->aliasField('identifier') => $identifier
            ]);
    }
protected function _query ( $ identifier ) { list ( , $ userAlias ) = pluginSplit ( $ this -> _config [ 'userModel' ] ) ; $ provider = $ this -> adapter ( ) -> id ; return $ this -> _profileModel -> find ( ) -> where ( [ $ this -> _profileModel -> aliasField ( 'provider' ) => $ provider , $ this -> _profileModel -> aliasField ( 'identifier' ) => $ identifier ] ) ; }
Get query to fetch social profile record.

@param string $identifier Provider's identifier.
@return \Cake\ORM\Query
Get query to fetch social profile record .