This commit is contained in:
2021-03-05 18:25:56 +08:00
parent cf395ad641
commit 4935ca7b2c
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -433,7 +433,6 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
return $this;
}
foreach ($param as $key => $val) {
var_dump($param, $val);
if (!$this->has($key)) {
$this->setAttribute($key, $val);
} else {
@@ -760,6 +759,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
if (empty($this->_fields)) {
$this->_fields = static::getColumns()->format();
}
var_dump($attribute, $this->_fields);
return array_key_exists($attribute, $this->_fields);
}