wip
This commit is contained in:
1 parent
9686d3b173
commit
fb85e4cce0
5 files changed
+67
-37
No files matched your search
@@ -111,6 +111,34 @@ class ImportPlayer
|
||||
$update_array
|
||||
);
|
||||
}
|
||||
|
||||
// $collection = [];
|
||||
// foreach ($chunk as $row) {
|
||||
// $update_array = [];
|
||||
// foreach ($row as $name => $value) {
|
||||
// switch ($name) {
|
||||
// case 'SS_MATCH_ID':
|
||||
// $update_array['match_id'] = (int) $value;
|
||||
// break;
|
||||
// case 'SS_PLAYER_ID':
|
||||
// $update_array['ss_player_id'] = (int) $value;
|
||||
// break;
|
||||
// default:
|
||||
// $name = strtolower($name);
|
||||
// $update_array[$name] = $value;
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// $collection[] = $update_array;
|
||||
// }
|
||||
|
||||
// StatistikoPlayer::upsert(
|
||||
// $collection,
|
||||
// uniqueBy: [
|
||||
// 'match_id',
|
||||
// 'ss_player_id',
|
||||
// ],
|
||||
// update: $fieldnames);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user