Merge pull request #18 from basakest/fixUpdatableAdapter

fix: fix a typo about updatePolicy method
This commit is contained in:
Jon Lee 2021-04-04 22:47:02 +08:00 committed by GitHub
commit be8f70909b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -235,8 +235,7 @@ class DatabaseAdapter implements DatabaseAdapterContract, BatchDatabaseAdapterCo
$instance->first(); $instance->first();
$update = []; $update = [];
foreach($newPolicy as $k => $v) { foreach($newPolicy as $k => $v) {
$item = 'v' . $k; $update['v' . $k] = $v;
$update[$item] = $k;
} }
$instance->update($update); $instance->update($update);
} }