Model类增加静态更新方法 update

This commit is contained in:
thinkphp
2016-04-09 12:48:56 +08:00
parent 6675a8f4da
commit 2a9f1f0f79
2 changed files with 16 additions and 17 deletions

View File

@@ -1324,6 +1324,7 @@ abstract class Driver
return [];
}
$fields = array_keys($bind);
$result = [];
foreach ($data as $key => $val) {
if (!in_array($key, $fields, true)) {
if ($this->config['fields_strict']) {