mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-13 12:49:04 +08:00
Merge pull request #11344 from ASlatius/patch-1
Update QueryInterface.php
This commit is contained in:
@@ -100,7 +100,7 @@ interface QueryInterface
|
||||
* The method will *not* do any quoting or escaping.
|
||||
*
|
||||
* - **or**: similar to the `and` operator except that the operands are concatenated using `OR`. For example,
|
||||
* `['or', ['type' => [7, 8, 9]], ['id' => [1, 2, 3]]` will generate `(type IN (7, 8, 9) OR (id IN (1, 2, 3)))`.
|
||||
* `['or', ['type' => [7, 8, 9]], ['id' => [1, 2, 3]]]` will generate `(type IN (7, 8, 9) OR (id IN (1, 2, 3)))`.
|
||||
*
|
||||
* - **not**: this will take only one operand and build the negation of it by prefixing the query string with `NOT`.
|
||||
* For example `['not', ['attribute' => null]]` will result in the condition `NOT (attribute IS NULL)`.
|
||||
|
||||
Reference in New Issue
Block a user