mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 05:52:48 +08:00
Model类属性tableName改为table Connection类getTableName 更改为 getTable
This commit is contained in:
@@ -429,7 +429,7 @@ class Relation
|
||||
protected function belongsToManyQuery($model, $table, $localKey, $foreignKey, $condition = [])
|
||||
{
|
||||
// 关联查询封装
|
||||
$tableName = $model::getTableName();
|
||||
$tableName = $model::getTable();
|
||||
$relationFk = (new $model)->getPk();
|
||||
return $model::field($tableName . '.*')
|
||||
->field(true, false, $table, 'pivot', 'pivot__')
|
||||
|
||||
Reference in New Issue
Block a user