如何使用 DoctrineCouchDBBundle 和 SF 2.8 插入模型?

How to insert a model with DoctrineCouchDBBundle and SF 2.8?

我全新安装了 Symfony 2.8 和 DoctrineCouchDBBundle。我已经创建了一个最小模型来尝试将对象插入 CouchDB,但出现以下错误:

HTTP Error with status 417 occurred while requesting /symfony/_bulk_docs. Error: not_implemented all_or_nothing is not supported 

我在 中读到 all_or_nothing 可以在 CouchDB 2.0 中删除,完成了吗?我正在使用 CouchDB 2.0,我会使用 Doctrine 和 Couchdb 2.0。 是 Doctrine 问题,还是 DoctrineCouchDBBundle 问题没有跟上一个 Doctrine 版本?

我在使用 CouchDB 2.0

时通过关闭 all_or_nothing 来完成这项工作

我的 config.yml 现在看起来像这样:

doctrine_couch_db:
  client:
    dbname: symfony
  odm:
     document_managers:
      default:
        all_or_nothing_flush: false
        auto_mapping: true