137 Commits (2774f3ea6c739c4bb5e24caab211172bd685b9bd)

Author SHA1 Message Date
Ondřej Vašíček d1037db68d
Fix #18499: When using `yii\db\Query::all()` and `yii\db\Query::$indexBy`, the `yii\db\Query::$indexBy` is auto inserted into `yii\db\Query::$select` - the same as in `yii\db\Query::column()` 4 years ago
flight643 7c5fcf32b4
Add int return type queryScalar and scalar method docs 4 years ago
Alexander Makarov ccb14ff667
release version 2.0.39 4 years ago
Maxim Hodyrev 09dc9b70f8
Fix #18066: Fixed `yii\db\Query::create()` wasn't using all info from `withQuery()` 4 years ago
Alexander Makarov 60a39654dd
release version 2.0.35 4 years ago
Sartor a66fac3bb1
Fix #17758: `Query::withQuery()` can be used for CTE 5 years ago
Brandon Kelly b500631d0a
Document [alias=>table] syntax for join methods (#17967) 5 years ago
Brandon Kelly 79dbd91246
Fix #17881: `yii\db\Query::queryScalar()` wasn’t reverting the `select`, `orderBy`, `limit`, and `offset` params if an exception occurred 5 years ago
Brandon Kelly 88f08005ab Fix #17687: `Query::indexBy` can now include a table alias 5 years ago
Brandon Kelly f2212a3183 Fix #17384: Fixed SQL error when passing `DISTINCT ON` queries 5 years ago
Brandon Kelly 54b3d6d8ab Fixes #17344: Improved performance of `yii\db\Connection::addSelect()` 5 years ago
cuileon 489dd119a5 merge from yiisoft/yii2 6 years ago
Robert Korulczyk ae5dee485e Improve Query PHPDoc [skip ci]. (#16834) 6 years ago
Soul11201 e47ac0c4a4
fix bug: when use a subquery 6 years ago
Vladimir Reznichenko 1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871) 7 years ago
Vladimir Reznichenko f10cb6aeee SCA with Php Inspections (EA Ultimate) 7 years ago
SilverFire - Dmitry Naumenko 8abb1089f2
Fixed testSelectSubquery 7 years ago
SilverFire - Dmitry Naumenko c297986066
Fixed Query::select() 7 years ago
SilverFire - Dmitry Naumenko 1b3526d8db
Fixed `yii\db\Query::select()` to override existing selects 7 years ago
SilverFire - Dmitry Naumenko 22832b7c49
release version 2.0.14 7 years ago
Carsten Brandt 488f98648a
added missing `@since` annotations 7 years ago
Alexander Makarov 10bab28423
Mentioned new data caching methods in the guide [skip ci] 7 years ago
SilverFire - Dmitry Naumenko 1bbd2e1993
Add ExpressionInterface to Query class 7 years ago
Brandon Kelly e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1 7 years ago
SilverFire - Dmitry Naumenko 5bd6ed5684
Fixed issues in accidental merge of unfinished #15398 7 years ago
胡倍玮 a036fac490 Extract cache from `yii\db\Command` to `yii\db\CacheableQueryTrait` and use it in `yii\db\Query` 7 years ago
SilverFire - Dmitry Naumenko b139e865b7
Fixed PHPDocs. Resolves discussion d16586334d (commitcomment-27343531) 7 years ago
Dmitry Naumenko d16586334d Fixes #7640: Implemented custom data types support. Added JSON support for MySQL and PostgreSQL, array support for PostgreSQL 7 years ago
wapmorgan 5afe0a0d36
Fixes #15047: `yii\db\Query::select()` and `yii\db\Query::addSelect()` now check for duplicate column names 7 years ago
Alexander Makarov b979b2aa88
Fixes #15355: Additional test and fix 7 years ago
Klimov Paul 65f6b59b35 `@inheritdoc` notation changed 7 years ago
Alexander f8990ac97a Fixes #15353: Remove side effect of ActiveQuery::getTablesUsedInFrom() introduced in 2.0.13 7 years ago
SilverFire - Dmitry Naumenko 8f2cd050af
Fixed Query not to dig inside Expression 7 years ago
Alexander Makarov 7e8a4c8629
Minor adjustments 7 years ago
Alexander Makarov ba931fa21d
Fixes #15356: Fixed multiple bugs in `yii\db\Query::getTablesUsedInFrom()` 7 years ago
vladis 6c731d46d0
#15356: Initial version of `yii\db\Query::getTablesUsedInFrom()` fix and tests 7 years ago
Гордиенко Владислав Юрьевич dc019856b7 Fixes #15355: Fixed `yii\db\Query::from()` does not work with `yii\db\Expression` 7 years ago
Alexander Makarov 2d672b6722
release version 2.0.13 7 years ago
Robert Korulczyk 5a8c3d537b Enable `phpdoc_summary` rule in php-cs-fixer config (#14675) 7 years ago
Robert Korulczyk 1501c659ac Add empty lines before return statements. (#14682) [skip ci] 7 years ago
Carsten Brandt c9347b0a57 Fixed ambiguous column error on indexBy with JOIN 7 years ago
Carsten Brandt 173108b5b0 Move getTablesUsedInFrom() from ActiveQuery to Query 7 years ago
Robert Korulczyk fe8a0a6a2e Enable `no_useless_else` rule in php-cs-fixer (#14420) 7 years ago
Carsten Brandt 53f380ca46 improved docs of Query::from() 7 years ago
Robert Korulczyk ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100) 7 years ago
Alex-Code 7c6620a65f
Fixes #13846: Fixed `Query::count()` issue with `orderBy` 7 years ago
Sam Mousa 8326a593ce
Use `ArrayHelper::getValue()`. 8 years ago
Alex-Code 13de76714b
Refactored `yii\db\Query::queryScalar()` method 8 years ago
Pavel Chaplygin 25e6eb04a5 refs #11122: Fixed can not use `orderBy` with aggregate functions (#12772) 8 years ago
Brandon Kelly 350e93e626 Fixes #12612: Query conditions added with `yii\db\Query::andWhere()` now get appended to the existing conditions if they were already being joined with the `and` operator 8 years ago