Paul Klimov
5ad6ba5c9e
Fix from e719ff5
moved to `yii\sphinx\Query`
10 years ago
Paul Klimov
e719ff5854
`yii\db\Query::queryScalar()` fixed to use `static` when creating subquery
10 years ago
Qiang Xue
2544e86d2c
Fixes #5735 : Added `yii\bootstrap\Tabs::renderTabContent` to support manually rendering tab contents
10 years ago
Serge Postrash
5acf17e658
Fixed phpdoc for yii\db\Query [skip ci]
10 years ago
Carsten Brandt
9df21d46f3
reverted addition of $where property
10 years ago
Carsten Brandt
222f9ddfad
added missing documentation about the NOT operator in Query
...
fixes #5147
10 years ago
Qiang Xue
b9c97ff2aa
Fixes #4938 : When `yii\db\ActiveQuery` is used to build sub-queries, its WHERE clause is not correctly generated
10 years ago
Qiang Xue
09b00c5cd0
Reverted #4098 .
10 years ago
Qiang Xue
9fd36afd5a
typo fix
10 years ago
Qiang Xue
dfadb6a917
Fixes #4098 : `yii\db\Query::addSelect()` should include `*` when it is called the first time
10 years ago
Carsten Brandt
2f4a09ef53
phpdoc
10 years ago
Carsten Brandt
91965fd391
phpdoc formatting issues
11 years ago
Carsten Brandt
76d8e2b5b3
code style, fixes #3140
11 years ago
Qiang Xue
a60d295253
Added support for using sub-queries when building a DB query with `IN` condition
11 years ago
Alex-Code
cee5fa5dd3
New addSelect method
...
New addSelect method. Useful for scopes.
11 years ago
Qiang Xue
0fa19291f1
refactored filterWhere().
11 years ago
Carsten Brandt
e9e59483f4
removed unnecessary code duplication
11 years ago
Carsten Brandt
96f1c4c10b
renamed Query::filter() to Query::filterWhere()
11 years ago
Alexander Makarov
06fdb79730
Added support for arbitrary number of parameters for NOT, AND, OR in filter methods of Query
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
11 years ago
Alexander Makarov
8cd247730a
Query::filter() adjustments
11 years ago
Qiang Xue
13c0931b23
Fixes #2880
11 years ago
Alexander Makarov
3c1a8141fd
fixes #2002
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Koudy
411dc71b09
Fixed getting the count for queries with the union
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Alexander Mohorev
c7e8d8b900
@param , @var , @property and @return must declare types as boolean, integer, string, array or null
11 years ago
Jacob Morrison
0e2b2fcbe6
Fix for logic Query::queryScalar uses to check for SELECT DISTINCT
11 years ago
Jacob Morrison
a3e128bb0b
Query::queryScalar wasn't making SELECT DISTINCT queries subqueries
11 years ago
Carsten Brandt
d3d832a3bf
phpdoc fixes
11 years ago
Qiang Xue
fb3b2f2c7d
Fixes #2490 : `yii\db\Query::count()` and other query scalar methods now properly handle queries with GROUP BY clause
11 years ago
Qiang Xue
9a068f50f4
Refactored batch query.
11 years ago
Qiang Xue
3a930bd675
Finished batch query feature.
11 years ago
Qiang Xue
1571c72251
Fixes #2409 : Added support for fetching data from database in batches
11 years ago
Qiang Xue
f59598bb8b
Added support for building SQLs with sub-queries
11 years ago
Qiang Xue
1f42b72baa
Fixes #2346 : ActiveQuery used in building sub-query should not need to set FROM clause explicitly.
11 years ago
Ivan Pomortsev
c9c59bdc26
Update Query.php
...
Using short array syntax.
11 years ago
Ivan Pomortsev
5f3d601b36
Update Query.php
...
Change passing parameters to array with two elements – 'all' which means if we use UNION or UNION ALL construction and 'query' which is our sql query that will be at right of construction.
11 years ago
Ivan Pomortsev
8109708b37
Update Query.php
...
Forget one ";" :D
11 years ago
Ivan Pomortsev
01c89ea3da
Update Query.php
...
Change union method to accept also <code>$all</code> variable. TRUE means that we must results <code>UNION ALL</code> construction, FALSE – that <code>UNION</code>.
11 years ago
Qiang Xue
febce76397
fixed build break and fixed doc about exists/not exists.
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
9b1c2c8064
Fixes #1586 : `QueryBuilder::buildLikeCondition()` will now escape special characters and use percentage characters by default
11 years ago
Carsten Brandt
795c74100d
reverted #1598 and added a test for it
11 years ago
Vincent
488918d03c
Refinement in comments
...
I checked this using XDebug, and the function actually returns null (which is something different than false). I assume it is the comment that should be changed, and not the code itself...
11 years ago
Carsten Brandt
b4612637ec
make count behave like in SQL
...
also fixed count behavior according to limit and offset.
fixes #1458
11 years ago
Carsten Brandt
b2d9166927
refactored scalar query functions to share common code
11 years ago
Carsten Brandt
124a73a598
make Query reuseable
...
fixes #1545
11 years ago
Qiang Xue
24621c3dd1
improved doc
11 years ago
Qiang Xue
79866ee3e0
Improved Query::select() doc.
11 years ago