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");
精彩评论