Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
8a1bcd27
Commit
8a1bcd27
authored
Oct 24, 2014
by
Thiago Talma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one more example
parent
20d764e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
QueryInterface.php
framework/db/QueryInterface.php
+2
-1
No files found.
framework/db/QueryInterface.php
View file @
8a1bcd27
...
@@ -99,7 +99,8 @@ interface QueryInterface
...
@@ -99,7 +99,8 @@ interface QueryInterface
* `['and', 'type=1', ['or', 'id=1', 'id=2']]` will generate `type=1 AND (id=1 OR id=2)`.
* `['and', 'type=1', ['or', 'id=1', 'id=2']]` will generate `type=1 AND (id=1 OR id=2)`.
* The method will *not* do any quoting or escaping.
* The method will *not* do any quoting or escaping.
*
*
* - **or**: similar to the `and` operator except that the operands are concatenated using `OR`.
* - **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)))`.
*
*
* - **not**: this will take only one operator and build the negation of it by prefixing the query string with `NOT`.
* - **not**: this will take only one operator 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)`.
* For example `['not', ['attribute' => null]]` will result in the condition `NOT (attribute IS NULL)`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment