mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 21:41:36 +08:00
Connection类model方法更改为getQuery
This commit is contained in:
@@ -178,7 +178,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
$connection = [];
|
||||
}
|
||||
// 设置当前模型 确保查询返回模型对象
|
||||
$query = Db::connect($connection)->model($model, $this->query);
|
||||
$query = Db::connect($connection)->getQuery($model, $this->query);
|
||||
|
||||
// 设置当前数据表和模型名
|
||||
if (!empty($this->table)) {
|
||||
|
||||
Reference in New Issue
Block a user