mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进Query类的after_insert回调方法参数
This commit is contained in:
@@ -2076,7 +2076,8 @@ class Query
|
|||||||
$pk = $this->getPk($options);
|
$pk = $this->getPk($options);
|
||||||
$data[$pk] = $lastInsId;
|
$data[$pk] = $lastInsId;
|
||||||
}
|
}
|
||||||
$this->trigger('after_insert', $data);
|
$options['data'] = $data;
|
||||||
|
$this->trigger('after_insert', $options);
|
||||||
|
|
||||||
if ($getLastInsID) {
|
if ($getLastInsID) {
|
||||||
return $lastInsId;
|
return $lastInsId;
|
||||||
|
|||||||
Reference in New Issue
Block a user