How to add or condition in mysql query in symfony

$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);

Leave your comment

  • handling phenomenal varying vicarious insert valign taskforce
    Ambienos Portachentes avi

  • 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