Skip to content

Commit 1018632

Browse files
committed
use configurable column names
1 parent b6a2041 commit 1018632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Drivers/Database.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ protected function write(array $data)
174174
$delete_keys = [];
175175

176176
foreach ($db_data as $db_row) {
177-
$key = $db_row->key;
178-
$value = $db_row->value;
177+
$key = $db_row->{$this->key};
178+
$value = $db_row->{$this->value};
179179

180180
$is_in_insert = $is_different_in_db = $is_same_as_fallback = false;
181181

0 commit comments

Comments
 (0)