改名
This commit is contained in:
@@ -426,8 +426,7 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
foreach ($param as $key => $val) {
|
foreach ($param as $key => $val) {
|
||||||
var_dump($this->has($key), $key);
|
if ($this->has($key)) {
|
||||||
if (!$this->has($key)) {
|
|
||||||
$this->setAttribute($key, $val);
|
$this->setAttribute($key, $val);
|
||||||
} else {
|
} else {
|
||||||
$this->$key = $val;
|
$this->$key = $val;
|
||||||
|
|||||||
Reference in New Issue
Block a user