This commit is contained in:
2021-03-16 10:46:50 +08:00
parent f3947f4542
commit 3b8639ad21
+1 -2
View File
@@ -426,8 +426,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
return $this;
}
foreach ($param as $key => $val) {
var_dump($this->has($key), $key);
if (!$this->has($key)) {
if ($this->has($key)) {
$this->setAttribute($key, $val);
} else {
$this->$key = $val;