后台代码格式化,内核更新

This commit is contained in:
2016-08-29 16:51:13 +08:00
parent 1710eb742c
commit dff622f0ac
21 changed files with 842 additions and 838 deletions

View File

@@ -1883,7 +1883,7 @@ class Query
}
// 返回结果处理
if ($resultSet) {
if ($this->connection->getNumRows()) {
// 数据列表读取后的处理
if (!empty($this->model)) {
// 生成模型对象
@@ -1898,7 +1898,7 @@ class Query
}
$resultSet[$key] = $result;
}
if (!empty($options['with'])) {
if (!empty($options['with']) && $result instanceof Model) {
// 预载入
$resultSet = $result->eagerlyResultSet($resultSet, $options['with'], is_object($resultSet) ? get_class($resultSet) : '');
}