在Doctrine 2中查找或创建(upsert)功能 [英] Find or create (upsert) functionality in Doctrine 2

查看:154
本文介绍了在Doctrine 2中查找或创建(upsert)功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Doctrine 2是否建立了内置的功能?这似乎不是,但我无法找到一个确定的是或否答案。



如果是,我当然会感兴趣看一个例子和/或一些文件。

解决方案

我相信我找到了答案。截至今天(2010年10月15日),有一个开放的添加提示支持教义问题。我假设如果教条2确实提出了支持,那么这张票不会开放,所以我想我有明确的答案。


Does Doctrine 2 have upsert functionality built in? It doesn't seem to, but I wasn't able to find a definitive yes-or-no answer.

If it does, I would of course be interested to see an example and/or some documentation.

解决方案

I believe I found the answer. As of today (10/15/2012), there's an open "add upsert support" issue for Doctrine. I assume that this ticket wouldn't still be open if Doctrine 2 did have upsert support, so I guess there's my definitive answer.

这篇关于在Doctrine 2中查找或创建(upsert)功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆