升级到5135LTS版本

This commit is contained in:
小松树 committed 2019-03-08 11:59:15 +08:00
1 parent 2702108200
commit 8e4b2bdaea
26 files changed
+268 -429

No files matched your search

@@ -194,8 +194,8 @@ class HasMany extends Relation
}
}
return $this->query
->whereExp($this->foreignKey, '=' . $this->parent->getTable() . '.' . $this->localKey)
return $this->query->alias($aggregate . '_table')
->whereExp($aggregate . '_table.' . $this->foreignKey, '=' . $this->parent->getTable() . '.' . $this->localKey)
->fetchSql()
->$aggregate($field);
}