[dev] Horde_Rdo - DISTINCT query

Jan Schneider jan at horde.org
Fri Sep 16 10:55:15 UTC 2011


Zitat von Luis Felipe Marzagao/Andamentos <lfbm.andamentos at gmail.com>:

> Hello:
>
> Is this the recommended way of running a SELECT DISTINCT query with  
> Horde Rdo?
>
> $mapper = new OrderMapper();
>
> $query = new Horde_Rdo_Query($mapper);
> $query->setFields('DISTINCT client_id');
>
> $mapper->find($query);

That's more like a hack. We should add some feature to Horde_Rdo_Query  
instead that makes a query DISTINCT.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list