改名
This commit is contained in:
@@ -313,6 +313,9 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
{
|
{
|
||||||
$data = $this->_attributes;
|
$data = $this->_attributes;
|
||||||
foreach ($this->getAnnotation() as $key => $item) {
|
foreach ($this->getAnnotation() as $key => $item) {
|
||||||
|
if (!isset($data[$key])) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$data[$key] = call_user_func([$this, $item[1]], $data[$key]);
|
$data[$key] = call_user_func([$this, $item[1]], $data[$key]);
|
||||||
}
|
}
|
||||||
return array_merge($data, $this->runRelate());
|
return array_merge($data, $this->runRelate());
|
||||||
|
|||||||
Reference in New Issue
Block a user