using OR clause for conditions

hi, if i use this :


$val = AR1::model()->with(

  'AR2'=>array(

    'condition'=>'att1 = 2'

  ),

  'AR3'=>array(

    'condition'=>'att2 = 3'

  )

)->findAll();

it will generate sql with the WHERE sql :


WHERE (att1 = 2) AND (att2 = 3);

how do i change the AND clause to a OR clause

thanks

Try




$val = AR1::model()->with(array('AR2', 'AR3'))->findAll(array('condition' => '(att1 = 2) OR (att2 = 3)');

thanks