src/Util/CompoundColumnBuilder.php
public function end(): DatagridBuilderInterface
    {
        /** @var CompoundColumn $rootColumn */
        $rootColumn = $this->factory->createColumn($this->name, $this->type, $this->options);

        $columns = [];

        foreach ($this->unresolvedColumns as $n => $column) {
            if (!isset($column['options']['data_provider'])) {
                $column['options']['data_provider'] = $this->options['data_provider'];
            }

            $columns[$n] = $this->factory->createColumn(
                $n,
                $column['type'],
                array_replace($column['options'], ['parent_column' => $rootColumn])
            );
        }

        $rootColumn->setColumns($columns);
        $this->builder->set($rootColumn);

        return $this->builder;
    }
public function end(): DatagridBuilderInterface
    {
        /** @var CompoundColumn $rootColumn */
        $rootColumn = $this->factory->createColumn($this->name, $this->type, $this->options);

        $columns = [];

        foreach ($this->unresolvedColumns as $n => $column) {
            if (!isset($column['options']['data_provider'])) {
                $column['options']['data_provider'] = $this->options['data_provider'];
            }

            $columns[$n] = $this->factory->createColumn(
                $n,
                $column['type'],
                array_replace($column['options'], ['parent_column' => $rootColumn])
            );
        }

        $rootColumn->setColumns($columns);
        $this->builder->set($rootColumn);

        return $this->builder;
    }
{@inheritdoc}