改名
This commit is contained in:
@@ -269,10 +269,7 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
{
|
{
|
||||||
$data = $this->_attributes;
|
$data = $this->_attributes;
|
||||||
foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) {
|
foreach ($this->getAnnotation(self::ANNOTATION_GET) as $key => $item) {
|
||||||
if (!isset($data[$key])) {
|
$data[$key] = $this->runAnnotation($key, $data[$key] ?? null);
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$data[$key] = $this->runAnnotation($key, $data[$key]);
|
|
||||||
}
|
}
|
||||||
$data = array_merge($data, $this->runRelate());
|
$data = array_merge($data, $this->runRelate());
|
||||||
$this->recover();
|
$this->recover();
|
||||||
|
|||||||
Reference in New Issue
Block a user