src/PeekAndPoke/Component/Formal/Theme/RenderModel.php
private function buildName(INestable $nestable)
    {
        $path = [];

        do {
            array_unshift($path, $nestable->getId());

            $nestable = $nestable->getParent();
        } while ($nestable);

        $ret = '';

        foreach ($path as $idx => $val) {
            if ($idx === 0) {
                $ret .= $val;
            } else {
                $ret .= '[' . $val . ']';
            }
        }

        return $ret;
    }
private function buildName(INestable $nestable)
    {
        $path = [];

        do {
            array_unshift($path, $nestable->getId());

            $nestable = $nestable->getParent();
        } while ($nestable);

        $ret = '';

        foreach ($path as $idx => $val) {
            if ($idx === 0) {
                $ret .= $val;
            } else {
                $ret .= '[' . $val . ']';
            }
        }

        return $ret;
    }
@param INestable $nestable

@return string