mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
模型saveall方法支持返回数据集 读取resultSetType属性
This commit is contained in:
@@ -1322,7 +1322,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
}
|
||||
}
|
||||
$db->commit();
|
||||
return $result;
|
||||
return $this->toCollection($result);
|
||||
} catch (\Exception $e) {
|
||||
$db->rollback();
|
||||
throw $e;
|
||||
|
||||
Reference in New Issue
Block a user