\Drupal::entityQuery('group') returns an empty array

Created on 18 April 2022, over 2 years ago
Updated 22 May 2023, over 1 year ago

Problem/Motivation

EntityQuery on group returns an empty array

Steps to reproduce

$query = \Drupal::entityQuery('group');
$gids = $query -> execute();
// returns an empty array().

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada peijun

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States R_H-L

    I know this is an old issue, but you have to remove the access check:

    $query = \Drupal::entityQuery('group')
    ->accessCheck(FALSE);
    $gids = $query -> execute();
    
Production build 0.71.5 2024