$c->addAsColumn('maximum', "MAX(".ClassPeer::FIELD.")");
A small trick I am using for that purpose. Kupo Greg Freeman wrote: > I was just wondering how to use the max criteria with propel, I need > to do something like > > SELECT MAX(somefield) FROM sometable WHERE somecondition = 0 > > Thanks :) > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---