Skip to content

Commit 60888fc

Browse files
committed
create方法改为强制新增数据
1 parent 8eb464a commit 60888fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ public static function create(array | object $data, array $allowField = [], bool
10001000
{
10011001
$model = new static();
10021002

1003-
$model->allowField($allowField)->replace($replace)->save($data);
1003+
$model->allowField($allowField)->replace($replace)->save($data, true);
10041004

10051005
return $model;
10061006
}

0 commit comments

Comments
 (0)