开发者

Doctrine 2.0 entitymanager->replace() equivalent

开发者 https://www.devze.com 2023-03-30 15:00 出处:网络
looking for a call that will ultimately result in a SQL of the form INSERT ... ON DUPLICATE KEY UPDAT开发者_运维问答E....

looking for a call that will ultimately result in a SQL of the form

INSERT ... ON DUPLICATE KEY UPDAT开发者_运维问答E....

In Doctrine 1.2, $em->replace($obj_to_persist) would achieve that. Any suggestions?


Doctrine 2 does not support INSERT ... ON DUPLICATE KEY UPDATE...., UPSERT, INSERT REPLACE, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消