Try something like: $c = new Criteria();
$c1 = $c->addNewCriterion(TeamsPeer::GAME_ID, 5); $c2 = $c->addNewCriterion(TeamsPeer::GAME_ID, 7); $c1->addOr($c2); $c->add($c1); On Sat, Apr 4, 2009 at 7:23 PM, Lawrence Krubner <lkrub...@geocities.com> wrote: > > > If I want SQL that has an OR in it, like this: > > select * from teams where game_id=5 OR game_id=7 > > How do I get that with Propel. This is not covered in Chapter 8 of the > Symfony book. > > > -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---