Carsten Brandt
468886a77b
small refactoring for #9452
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Carsten Brandt
7c7ed48c4c
cleanup docs and duplicate code in query
9 years ago
Carsten Brandt
decd45201c
allow passing a single Expression object to select() and addSelect()
...
fixes #9883
9 years ago
Carsten Brandt
4e7adc13ea
adjusted docs about Query::from() and subqueries
...
also added a test to verify behavior
close #9720
close #9266
9 years ago
Aleksandr Golovko
a2f70f6484
Update Query doc return type
...
When used ActiveQuery chain call after call any of join type IDE cannot resolve ActiveQuery methods such an asArray
Example:
SomeActiveRecordModel::find()
->select('...') // return ActiveQuery
->leftJoin('...', '...') // return Query
->asArray() // it's become undefined
->column();
9 years ago
Alexander Mohorev
68c30c1034
Replace aliases of functions
9 years ago
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
9 years ago
Carsten Brandt
f68e970de2
link to PHP classes just as we do with normal classes
...
apidoc can handle this!
9 years ago
Alexander Makarov
67658cf57d
Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly
9 years ago
Carsten Brandt
1cfc40d6e5
link to the guide on quoting from query phpdoc
...
fixes #8141
10 years ago
Carsten Brandt
f99f333218
added note to docs about #8085
10 years ago
Klimov Paul
b8081b59b3
Fixed `yii\db\Query::count()` fails for query containing 'having' without 'group by'
10 years ago
Qiang Xue
aead65f2d2
Fixes #7515 : Added support to use `indexBy()` together with `column()` in query builder
10 years ago
Carsten Brandt
4267b53d43
added doc about count() return value
...
fixes #yiisoft/yii#3712
10 years ago
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