mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修复在配置Model属性field=true情况下,通过__call调用db()引发的BUG
This commit is contained in:
@@ -158,7 +158,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
|
||||
if (!empty($this->field)) {
|
||||
if (true === $this->field) {
|
||||
$type = $this->db()->getTableInfo('', 'type');
|
||||
$type = $query->getTableInfo('', 'type');
|
||||
} else {
|
||||
$type = [];
|
||||
foreach ((array) $this->field as $key => $val) {
|
||||
|
||||
Reference in New Issue
Block a user