Getting the parent group entity programatically

Created on 1 February 2021, almost 4 years ago
Updated 16 August 2023, over 1 year ago

Hi. Please can someone advise if there is a simple way to get the parent group entity of a subgroup programatically? At the moment since I haven't found an easier way I am loading all the groups of the type that are parents of my subgroup and looping through them till I find the one that parents the subgroup in question. I'm sure there has to be an easier way?

💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom roblog Cymru

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.

Production build 0.71.5 2024