mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进appendRelationAttr方法
This commit is contained in:
@@ -692,7 +692,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
if (isset($this->data[$key])) {
|
if (isset($this->data[$key])) {
|
||||||
throw new Exception('bind attr has exists:' . $key);
|
throw new Exception('bind attr has exists:' . $key);
|
||||||
} else {
|
} else {
|
||||||
$this->data[$key] = $model->$attr;
|
$this->data[$key] = $model->getAttr($attr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user