public function addOr($p1, $p2 = null, $p3 = null, $preferColumnCondition = true)
    {
        $rightCriterion = $this->getCriterionForCondition($p1, $p2, $p3);

        $leftCriterion = $this->getLastCriterion();

        if (null !== $leftCriterion) {
            // combine the given criterion with the existing one with an 'OR'
            $leftCriterion->addOr($rightCriterion);
        } else {
            // nothing to do OR / AND with, so make it first condition
            $this->add($rightCriterion);
        }

        return $this;
    }
public function addOr($p1, $p2 = null, $p3 = null, $preferColumnCondition = true)
    {
        $rightCriterion = $this->getCriterionForCondition($p1, $p2, $p3);

        $leftCriterion = $this->getLastCriterion();

        if (null !== $leftCriterion) {
            // combine the given criterion with the existing one with an 'OR'
            $leftCriterion->addOr($rightCriterion);
        } else {
            // nothing to do OR / AND with, so make it first condition
            $this->add($rightCriterion);
        }

        return $this;
    }
public function addOr ( $ p1 , $ p2 = null , $ p3 = null , $ preferColumnCondition = true ) { $ rightCriterion = $ this -> getCriterionForCondition ( $ p1 , $ p2 , $ p3 ) ; $ leftCriterion = $ this -> getLastCriterion ( ) ; if ( null !== $ leftCriterion ) { // combine the given criterion with the existing one with an 'OR' $ leftCriterion -> addOr ( $ rightCriterion ) ; } else { // nothing to do OR / AND with, so make it first condition $ this -> add ( $ rightCriterion ) ; } return $ this ; }
If a prior criterion exists, the condition is "OR"ed to it.
If no criterion exist, the condition is added a new criterion

Any comparison can be used.

Supports a number of different signatures:
- addOr(column, value, comparison)
- addOr(column, value)
- addOr(Criterion)

@param mixed $p1
@param mixed $p2
@param mixed $p3
@param bool $preferColumnCondition
@return $this|Criteria A modified Criteria object.
If a prior criterion exists the condition is OR ed to it . If no criterion exist the condition is added a new criterion