public static function delete_all_relations($gid) { // we need more info about the entity $entity_info = TypedGroupEntity::load_for_group($gid, false); $relation = array('subject_service' => 'internal', 'subject_type' => 'user', 'object_service' => 'typedGroup', 'object_type' => $entity_info['entity_type'], 'object_id' => $gid); parent::delete_match($relation); }