From: conankun <hendrachrist...@gmail.com>
Date: Wed, 8 Jul 2009 18:24:03 -0700 (PDT)
Local: Thurs 9 July 2009 02:24
Subject: Re: Custom orderBy with FIELD
Hey Phillip,
Ignore my earlier reply, I got it to work with Doctrine_RawSql,
$q = new Doctrine_RawSql();
$result = $q->execute()->toArray();
Cheers,
On Jul 9, 10:53 am, "J.Philip" <jphi...@noatak.com> wrote:
> You can do this in Doctrine with a RawSql query.
> -----Original Message-----
> 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.
| ||||||||||||||