mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
hasMany的has方法默认不指定字段
This commit is contained in:
@@ -244,7 +244,6 @@ class HasMany extends Relation
|
|||||||
|
|
||||||
return $this->parent->db()
|
return $this->parent->db()
|
||||||
->alias($model)
|
->alias($model)
|
||||||
->field($model . '.*')
|
|
||||||
->join($table . ' ' . $relation, $model . '.' . $this->localKey . '=' . $relation . '.' . $this->foreignKey, $joinType)
|
->join($table . ' ' . $relation, $model . '.' . $this->localKey . '=' . $relation . '.' . $this->foreignKey, $joinType)
|
||||||
->group($relation . '.' . $this->foreignKey)
|
->group($relation . '.' . $this->foreignKey)
|
||||||
->having('count(' . $id . ')' . $operator . $count);
|
->having('count(' . $id . ')' . $operator . $count);
|
||||||
|
|||||||
Reference in New Issue
Block a user