Skip to content
PHP Ecosystem
Explore

OrCondition

API reference › yii › db › conditions › OrCondition

classyii\db\conditions\OrCondition
ExtendsConjunctionCondition
ImplementsConditionInterface
Since2.0.14
Sourceframework/db/conditions/OrCondition.php

Condition that connects two or more SQL expressions with the AND operator.

PropertyTypeDescriptionDefined by
$expressions protectedmixed[]Default: null.ConjunctionCondition
MethodDescriptionDefined by
__construct()ConjunctionCondition
fromArrayDefinition() staticCreates object by array-definition as described in Query Builder – Operator format guide article.ConjunctionCondition
getExpressions()ConjunctionCondition
getOperator()Returns the operator that is represented by this condition class, e.g. AND, OR.OrCondition
public function getOperator(): string

Returns the operator that is represented by this condition class, e.g. AND, OR.

Returns

string