This commit is contained in:
as2252258@163.com
2021-03-04 23:44:56 +08:00
parent e8e5641f41
commit 5676b0d7fd
+2 -1
View File
@@ -827,7 +827,8 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
public function refresh(): static
{
$this->_oldAttributes = $this->_attributes;
return $this;
$this->setIsCreate(false);
return $this;
}
/**