diff --git a/src/Drivers/Database.php b/src/Drivers/Database.php index 4170adb..e0d7899 100644 --- a/src/Drivers/Database.php +++ b/src/Drivers/Database.php @@ -174,8 +174,8 @@ protected function write(array $data) $delete_keys = []; foreach ($db_data as $db_row) { - $key = $db_row->key; - $value = $db_row->value; + $key = $db_row->{$this->key}; + $value = $db_row->{$this->value}; $is_in_insert = $is_different_in_db = $is_same_as_fallback = false;