-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query.php public function getTableInfo($tableName = '', $fetch = '') bug #23
Comments
这个bug是在使用聚合查询的时候出现. 我用的是sum |
官方现在都不修复bug的吗? |
@cntlis 你怎么知道没修复 很多issue都没有及时关闭而已,mongo扩展都更新换代了好几代了而且 老版本的也不可能一直更新了的 |
@liu21st 我目前使用的5.0的版本,getTableInfo这里,确实还是会抛错,只不过和他抛错不一样。 |
table方法本来就不是给table属性赋值的 而是统一走options属性的 |
@liu21st 那你看我这样的用法有问题不?Db::connect('db_mongo') |
2009行.
$result = $this->table($tableName)->find();
if ($result instanceof Model) {
$result = $result->toArray();
}
$fields = array_keys($result);
当集合中数据为空时,$result为null,
导致array_keys($result);抛出异常array_keys() expects parameter 1 to be array, null given
希望修复
The text was updated successfully, but these errors were encountered: