开发者

How do I do the Update raw query in Doctrine?

开发者 https://www.devze.com 2023-01-27 16:29 出处:网络
I need to update extra field in associative table w开发者_如何学Cith a raw query how do I do it. Nothing is working !!!!!This works for me with Doctrine 1.2 when doing an UPDATE:

I need to update extra field in associative table w开发者_如何学Cith a raw query how do I do it. Nothing is working !!!!!


This works for me with Doctrine 1.2 when doing an UPDATE:

Doctrine_Manager::getInstance()
  ->getCurrentConnection()
  ->execute("UPDATE table t SET t.field = 1 WHERE t.id = 2");
0

精彩评论

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