OrCondition
API reference › yii › db › conditions › OrCondition
Condition that connects two or more SQL expressions with the AND operator.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$expressions protected | mixed[] | Default: null. | ConjunctionCondition |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | ConjunctionCondition | |
fromArrayDefinition() static | Creates 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 |
Method details
Section titled “Method details”getOperator()
Section titled “getOperator() ”public function getOperator(): stringReturns the operator that is represented by this condition class, e.g. AND, OR.
Returns
string