Getting the parent group entity programatically

Created on 1 February 2021, over 3 years ago
Updated 16 August 2023, 11 months 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.69.0 2024