改名
This commit is contained in:
@@ -317,7 +317,10 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
|
|
||||||
$data = $this->_attributes;
|
$data = $this->_attributes;
|
||||||
foreach ($callback as $key => $item) {
|
foreach ($callback as $key => $item) {
|
||||||
$data[$key] = call_user_func($item, $data[$key]);
|
$result = call_user_func($item['handler'], $data[$key]);
|
||||||
|
foreach ($item['attributes'] as $attribute) {
|
||||||
|
$data[$attribute] = $result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_merge($data, $this->runRelate());
|
return array_merge($data, $this->runRelate());
|
||||||
|
|||||||
Reference in New Issue
Block a user