Import: exception for missing key column...
...but skip check for now
This commit is contained in:
parent
666aafc842
commit
c9e5f16d3e
|
@ -32,8 +32,16 @@ class Import
|
|||
foreach (ImportSourceHook::loadByName($source->source_name, $connection)->fetchData() as $row) {
|
||||
// TODO: Check for name collision
|
||||
if (! isset($row->$keyColumn)) {
|
||||
die('Depp');
|
||||
continue;
|
||||
throw new \Exception(
|
||||
sprintf(
|
||||
'No key column "%s" in row: %s',
|
||||
$keyColumn,
|
||||
json_encode($row)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$object_name = $row->$keyColumn;
|
||||
$rowChecksums = array();
|
||||
$keys = array_keys((array) $row);
|
||||
|
|
Loading…
Reference in New Issue