开发者

How do I do the Update raw query in Doctrine?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜