protected function _getChildren($parentId, $activeOnly = false)
    {
        //inicjalizacja zapytania
        $query = (new CmsCategoryQuery)
            ->whereParentId()->equals($parentId)
            ->joinLeft('cms_category_type')->on('cms_category_type_id')
            ->orderAscOrder()
            ->orderAscId();
        //tylko aktywne
        if ($activeOnly) {
            $query->whereStatus()->equals(self::STATUS_ACTIVE);
        }
        //zwrot w postaci tablicy rekordów
        return $query->find()->toObjectArray();
    }