fecshop mongodb 3.6 bug Fixed `yii\mongodb\Command::aggregate()` without 'cursor'

bug问题 · Fecmall · 于 6年前 发布 · 2203 次阅读

对于mongodb3.6 会出现报错:

https://github.com/yiisoft/yii2-mongodb/commit/0ad02a4750474ffaf43262c7203cf83836fe88e1

yii2-mongodb官方已经修复,但是,没有发布版本,因此,需要更新dev-master,您可以按照下面的步骤解决:

1.vim composer.json ,require中加入:"yiisoft/yii2-mongodb": "dev-master",

加入后的效果如下:

    "require": {
        "yiisoft/yii2-mongodb": "dev-master",
        "php": ">=5.4.0",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
		// 省略
		...
    },

2.执行composer update, 执行log如下:

[root@ip-172-31-30-214 fecshop-1.2.2.8]# composer update
Loading composer repositories with package information
Updating dependencies (including require-Package operations: 0 installs, 1 update, 0 removals                                                     
  - Removing yiisoft/yii2-mongodb (2.1.5)
  - Installing yiisoft/yii2-mongodb (dev-master 0ad02a4): Cloning 0ad02a4750
Package yiisoft/yii2-codeception is abandoned, you should avoid using it. Use codeception/codeception instead.
Writing lock file
Generating autoload files
[root@ip-172-31-30-214 fecshop-1.2.2.8]# 

3.完成。

共收到 0 条回复
没有找到数据。
添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics