src/Models/Repository/RoleHierarchyRepository.php
private function getAllChildRoleIds($parentIds)
    {
        $allChildIds = [];

        while (count($parentIds) > 0) {
            $parentIds = $this->getChildIds($parentIds);
            $allChildIds = ArrayHelper::merge($allChildIds, $parentIds);
        };

        return $allChildIds;
    }
private function getAllChildRoleIds($parentIds)
    {
        $allChildIds = [];

        while (count($parentIds) > 0) {
            $parentIds = $this->getChildIds($parentIds);
            $allChildIds = ArrayHelper::merge($allChildIds, $parentIds);
        };

        return $allChildIds;
    }
private function getAllChildRoleIds ( $ parentIds ) { $ allChildIds = [ ] ; while ( count ( $ parentIds ) > 0 ) { $ parentIds = $ this -> getChildIds ( $ parentIds ) ; $ allChildIds = ArrayHelper :: merge ( $ allChildIds , $ parentIds ) ; } ; return $ allChildIds ; }
Returns all child role ids for given parent role ids
@param integer[] $parentIds
@return integer[]
@throws \Doctrine\ORM\Query\QueryException
Returns all child role ids for given parent role ids