如何使用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 ?
我全新安装了Symfony 2.8和 DoctrineCouchDBBundle 。 我创建了一个最小模型来尝试将对象插入到CouchDB中,但是我有以下错误: p>
HTTP请求/ symfony / _bulk_docs时出现状态为417的错误。 错误:not_implemented不支持all_or_nothing
code> pre>
我在 all_or_nothing strong>的“全部或全部支持 - 云端”这篇文章,是否完成了? 我正在使用CouchDB 2.0,我会将Doctrine与Couchdb 2.0一起使用。
这是一个Doctrine问题,还是DoctrineCouchDBBundle问题与上一个Doctrine版本不兼容? p>
div>
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