From: "J.Philip" <jphi...@noatak.com>
Date: Wed, 8 Jul 2009 16:53:15 -0800
Local: Thurs 9 July 2009 01:53
Subject: RE: [doctrine-user] Custom orderBy with FIELD
You can do this in Doctrine with a RawSql query.
-----Original Message-----
From: doctrine-user@googlegroups.com [mailto:doctrine-user@googlegroups.com] On Behalf Of conankun
Hi,
I would like to know if it's possible to do a custom orderBy with
SELECT * FROM `table` ORDER BY FIELD(id,2,5,3,6,4,1);
I know I can do a normal Doctrine_Query and traverse the results array
If it's currently not possible, I hope it will be added in the future,
PS: Let me know if this suppose to be a support ticket or something.
Cheers,
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||