public function findByProfileIdentifier($identifier, $provider, array $options = [])
    {
        return $this->findOneBy(array('profiles.' . $provider . '.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options);
    }
public function findByProfileIdentifier($identifier, $provider, array $options = [])
    {
        return $this->findOneBy(array('profiles.' . $provider . '.auth.identifier' => $identifier), $options) ?: $this->findOneBy(array('profile.identifier' => $identifier), $options);
    }
public function findByProfileIdentifier ( $ identifier , $ provider , array $ options = [ ] ) { return $ this -> findOneBy ( array ( 'profiles.' . $ provider . '.auth.identifier' => $ identifier ) , $ options ) ? : $ this -> findOneBy ( array ( 'profile.identifier' => $ identifier ) , $ options ) ; }
Finds user by profile identifier

@param string $identifier
@param string $provider
@param array $options
@return UserInterface
Finds user by profile identifier