mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
修正模型类的append处理
This commit is contained in:
@@ -839,7 +839,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 {
|
||||||
$item[$key] = $value ? $value->$attr : null;
|
$item[$key] = $value ? $value->getAttr($attr) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user