doutang6819 2016-10-19 19:35
浏览 43
已采纳

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

I've a fresh install of Symfony 2.8 and DoctrineCouchDBBundle. I've created a minimal model to try to insert an object into CouchDB, but I have the following error :

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

I read in this post that all_or_nothing could be removed in CouchDB 2.0, is it done ? I am using CouchDB 2.0 and I would use Doctrine with Couchdb 2.0. Is it a Doctrine problem, or a DoctrineCouchDBBundle problem that is not up to date with the last Doctrine version ?

  • 写回答

1条回答 默认 最新

  • douyue8364 2016-10-27 19:12
    关注

    I got this working by turning off all_or_nothing while using CouchDB 2.0

    My config.yml looks like this now:

    doctrine_couch_db:
      client:
        dbname: symfony
      odm:
         document_managers:
          default:
            all_or_nothing_flush: false
            auto_mapping: true
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!