|
|
@ -643,8 +643,10 @@ class Changeset |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function addFilledRows($csvArray) |
|
|
|
public function addFilledRows($csvArray) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
$columns = collect($this->fetchAndTransformColumns())->where('toRemove', false); |
|
|
|
|
|
|
|
|
|
|
|
/** @var Column[] $columns */ |
|
|
|
/** @var Column[] $columns */ |
|
|
|
$columns = array_values($this->fetchAndTransformColumns()); |
|
|
|
$columns = $columns->values()->all(); |
|
|
|
|
|
|
|
|
|
|
|
$rows = self::csvToRowsArray($columns, $csvArray, false, true) |
|
|
|
$rows = self::csvToRowsArray($columns, $csvArray, false, true) |
|
|
|
->keyBy('_id'); |
|
|
|
->keyBy('_id'); |
|
|
|