wip
This commit is contained in:
1 parent
09bfeffd25
commit
0a914008e9
1 file changed
+3
-2
@@ -23,13 +23,14 @@ class ImportPlayer
|
||||
|
||||
$update_array = [];
|
||||
foreach ($fieldnames as $key => $name) {
|
||||
$offset = $key + 3;
|
||||
$offset = (int) $key + 4;
|
||||
$update_array[$name] = $row[$offset];
|
||||
}
|
||||
|
||||
StatistikoPlayer::where('sport_id', $row[0])
|
||||
->where('match_id', $row[1])
|
||||
->where('player_id', $row[2])
|
||||
->where('ss_player_id', $row[2])
|
||||
->where('tm_player_id', $row[3])
|
||||
->update($update_array, ['upsert' => true]);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user