This commit is contained in:
2021-03-16 10:46:10 +08:00
parent 21be67ea4e
commit f3947f4542
3 changed files with 11 additions and 15 deletions
+1
View File
@@ -426,6 +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)) {
$this->setAttribute($key, $val);
} else {