public function Criteria::orWhere in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/collections/lib/Doctrine/Common/Collections/Criteria.php \Doctrine\Common\Collections\Criteria::orWhere()
Appends the where expression to evaluate when this Criteria is searched for using an OR with previous expression.
Parameters
Expression $expression:
Return value
File
- vendor/
doctrine/ collections/ lib/ Doctrine/ Common/ Collections/ Criteria.php, line 155
Class
- Criteria
- Criteria for filtering Selectable collections.
Namespace
Doctrine\Common\CollectionsCode
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;
}