On Fri, Aug 04, 2006 at 04:47:25PM -0400, Sean McBride wrote: > Item.select(Item.q.id==table.collection_item.item_id, > extraColumns = [func.COUNT(Item.q.id)], > groupBy = Item.q.id, > orderBy = [DESC(func.COUNT(Item.q.id)),Item.q.name])
You've forgotten a way to declare the extra columns in the Item class. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss