带有表达式的doctrine dql orderby

时间:2016-02-23 16:42:59

标签: doctrine dql

我如何在doctrine2 dql中执行类似的操作

Select  m* from Members
WHERE MemberID = "6" or MemberId="3" or MemberID="5"
ORDER BY MemberID = "6" DESC, MemberId="3" DESC, MemberID="5" DESC;

0 个答案:

没有答案