dump array columns as array
This commit is contained in:
parent
d2e2805fac
commit
82170e1718
|
@ -150,6 +150,11 @@ abstract class AbstractDataDumper extends AbstractDataHandler implements DataDum
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (!$isPrimaryKey || ($isPrimaryKey && !$tableMap->isUseIdGenerator())) {
|
elseif (!$isPrimaryKey || ($isPrimaryKey && !$tableMap->isUseIdGenerator())) {
|
||||||
|
if (!empty($row[$col]) && 'ARRAY' === $column->getType()) {
|
||||||
|
$serialized = substr($row[$col], 2, -2);
|
||||||
|
$row[$col] = $serialized ? explode(' | ', $serialized) : array();
|
||||||
|
}
|
||||||
|
|
||||||
// We did not want auto incremented primary keys
|
// We did not want auto incremented primary keys
|
||||||
$values[$col] = $row[$col];
|
$values[$col] = $row[$col];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue