mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Added not
to operator format in docs [skip ci]
This commit is contained in:

committed by
Alexander Makarov

parent
abc0cb5c1e
commit
b5e0903435
@ -250,6 +250,8 @@ the operator can be one of the following:
|
||||
|
||||
- `or`: similar to the `and` operator except that the operands are concatenated using `OR`.
|
||||
|
||||
- `not`: requires only operand 1, which will be wrapped in `NOT()`. For example, `['not', 'id=1']` will generate `NOT (id=1)`. Operand 1 may also be an array to describe multiple expressions. For example `['not', ['status' => 'draft', 'name' => 'example']]` will generate `NOT ((status='draft') AND (name='example'))`.
|
||||
|
||||
- `between`: operand 1 should be the column name, and operand 2 and 3 should be the
|
||||
starting and ending values of the range that the column is in.
|
||||
For example, `['between', 'id', 1, 10]` will generate `id BETWEEN 1 AND 10`.
|
||||
|
Reference in New Issue
Block a user