diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 7c14eb86..500ff27a 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -425,13 +425,16 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess if (empty($param)) { return $this; } - foreach ($param as $key => $val) { - if ($this->has($key)) { - $this->setAttribute($key, $val); - } else { - $this->$key = $val; - } - } + + $this->_attributes = array_merge($this->_attributes, $param); +// +// foreach ($param as $key => $val) { +// if ($this->has($key)) { +// $this->setAttribute($key, $val); +// } else { +// $this->$key = $val; +// } +// } return $this; }