This commit is contained in:
thinkphp
2017-12-27 23:43:23 +08:00
parent 7ccf303cf6
commit 4ed42ca9ee

View File

@@ -1074,7 +1074,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
foreach ((array) $pk as $key) {
if (isset($data[$key])) {
$array[] = [$key, '=', $data[$key]];
$array[$key] = $data[$key];
unset($data[$key]);
}
}