mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-05 22:52:49 +08:00
改进 save方法的自动判断机制 支持一个位置注册多个事件
This commit is contained in:
@@ -1951,6 +1951,7 @@ abstract class Driver
|
||||
if (!empty($options['model'])) {
|
||||
// 返回模型对象
|
||||
$result = new $options['model']($result);
|
||||
$result->isUpdate(true);
|
||||
}
|
||||
$resultSet[$key] = $result;
|
||||
}
|
||||
@@ -2024,6 +2025,7 @@ abstract class Driver
|
||||
if (!empty($options['model'])) {
|
||||
// 返回模型对象
|
||||
$data = new $options['model']($data);
|
||||
$data->isUpdate(true);
|
||||
}
|
||||
} else {
|
||||
$data = false;
|
||||
|
||||
Reference in New Issue
Block a user