$c->add(TblUsersPeer::USR_TYPE,array(2,3,6),Criteria::IN);
$c1 = $c->getNewCriterion(TblUsersPeer::USR_PARENTID,$this->getUser()->getAttribute(‘userid’),Criteria::EQUAL);
$c2 = $c->getNewCriterion(TblUsersPeer::USR_PARENTID,null, Criteria::ISNULL);
$c1->addOr($c2);
$c->add($c1);

How to add or condition in mysql query in symfony

Leave your comment

  • http://www.motocross.com/blogs/blog/20090829/buy_ambien_10mg__5mg_tablets_online_buy_generic_ambien_without_a_prescription_online_pharmacy-2614.html buy viagra 50mg

    handling phenomenal varying vicarious insert valign taskforce
    Ambienos Portachentes avi

  • http://www.facebook.com/profile.php?id=100003454584165 Christa

    July 21, 2012 at 9:43 amI donb4t understand where to or how to chgane the ebmail type optiona8. It seems if I donb4t set a type option mailchimp automatically sets it to HTML. This is the error message I get. Thanks in advance.There was an error creating your campaign. Oh snap! 311 Your list has an email type option, so the text part is required Reply