开发者

Doctrine: Update Join?

开发者 https://www.devze.com 2022-12-24 12:09 出处:网络
Anyone know how to do an update with a join (i.e. update on two tables in one query) in Doctrine 1.2?

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

精彩评论

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

关注公众号