模型saveall方法支持返回数据集 读取resultSetType属性

This commit is contained in:
thinkphp
2017-11-28 12:53:09 +08:00
parent 3735430d04
commit 1fc85442cb

View File

@@ -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;