diff --git a/src/Column/Type/CollectionColumnType.php b/src/Column/Type/CollectionColumnType.php index 42a2e587..8b0effed 100755 --- a/src/Column/Type/CollectionColumnType.php +++ b/src/Column/Type/CollectionColumnType.php @@ -37,8 +37,8 @@ public function buildExportValueView(ColumnValueView $view, ColumnInterface $col 'separator' => $options['separator'], ]; - $view->value = implode($options['export']['separator'], array_map( - static fn (ColumnValueView $view) => $view->value, + $view->value = $view->vars['value'] = implode($options['export']['separator'], array_map( + static fn (ColumnValueView $view) => $view->vars['value'], $this->createChildrenColumnValueViews($view, $column, $options['export']), )); } @@ -66,7 +66,7 @@ private function createChildrenColumnValueViews(ColumnValueView $view, ColumnInt $children = []; - foreach ($view->value ?? [] as $index => $data) { + foreach ($view->vars['value'] ?? [] as $index => $data) { // Create a virtual row view for the child column. $valueRowView = clone $view->parent; $valueRowView->origin = $view->parent;