mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
调整
This commit is contained in:
@@ -244,6 +244,7 @@ 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