public function Criteria::orWhere

Append the where expression to evaluate when this criteria is searched for using an OR with previous expression.

Parameters

Expression:

Return value

Criteria

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Criteria.php, line 146

Class

Criteria
Criteria for filtering Selectable collections.

Namespace

Doctrine\Common\Collections

Code

public function orWhere(Expression $expression) {
  if ($this->expression === null) {
    return $this
      ->where($expression);
  }
  $this->expression = new CompositeExpression(CompositeExpression::TYPE_OR, array(
    $this->expression,
    $expression,
  ));
  return $this;
}