[dev] Re: DataTree get(First/Last/Random)ByAttributes()

Chuck Hagenbuch chuck at horde.org
Sat Mar 12 09:17:39 PST 2005


Quoting Duck <duck at obala.net>:

> Add new random query build type and implement query build types in selecting
> objects by their attributes too.

ORDER BY RAND() is not portable beyond MySQL. Also, any reason not to 
make $criteria just an optional parameter to getFirst() and getLast(), 
so as to avoid adding yet more methods?

-chuck

-- 
"But she goes not abroad in search of monsters to destroy." - John 
Quincy Adams


More information about the dev mailing list