social_group_flexible_group_update_130003 fails with sub group type

Created on 23 July 2025, about 2 months ago

Problem/Motivation

The update hook social_group_flexible_group_update_130003 fails if we subclass Socal\Group and set this as a new base class

Steps to reproduce

Create a class


namespace Drupal\mkat_group\Entity;

use Drupal\social_group\Entity\Group as SocialGroup;

/**
 * Bundle class for groups.
 */
class Group extends SocialGroup {
...
}

Proposed resolution

Use


\Drupal::entityTypeManager()->getStorage('group')->load($item->gid); 

Instead of

Group::load($item->gid);

There is a similar issue in drupal core:

https://www.drupal.org/project/drupal/issues/3127026 πŸ› Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay class does not correspond to an entity type. Needs work

πŸ› Bug report
Status

Active

Version

13.0

Component

Code (back-end)

Created by

πŸ‡©πŸ‡ͺGermany Christian.wiedemann

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

Comments & Activities

Production build 0.71.5 2024