开发者

Doctrine: Update Join?

Anyone know how to do an update with a join (i.e. update on two tables in one query) in Doctrine 1.2?

开发者_如何学编程

I spotted something obscure on a forum that hinted that this is not supported in 1.x but it was about as vague as it comes.

Thank you.


That's the cleanest I could get it in the end, seems to do the job.

Doctrine_Manager::getInstance()->getCurrentConnection()->execute("UPDATE JOIN QUERY GOES IN HERE");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜