src/Rbac/DbManager.php
protected function getChildrenList()
    {
        return (new Query())->from($this->itemChildTable)
            ->all($this->db)
            ->then(
                function($rows) {
                    $parents = [];
                    foreach ($rows as $row) {
                        $parents[$row['parent']][] = $row['child'];
                    }

                    return $parents;
                }
            );
    }
protected function getChildrenList()
    {
        return (new Query())->from($this->itemChildTable)
            ->all($this->db)
            ->then(
                function($rows) {
                    $parents = [];
                    foreach ($rows as $row) {
                        $parents[$row['parent']][] = $row['child'];
                    }

                    return $parents;
                }
            );
    }
Returns the children for every parent.
@return ExtendedPromiseInterface with array the children list. Each array key is a parent item name,
and the corresponding array value is a list of child item names.