Carsten Brandt
e493843b1c
improve `@deprecated` annotations
7 years ago
Robert Korulczyk
df91a9608f
Fixes #14638 : Added `yii\db\SchemaBuilderTrait::tinyInteger()`
7 years ago
Nikolay Oleynikov
74dc1cdc30
Fixes #13618 : Active record now resets related models after corresponding attributes updates
...
Co-authored-by: Robert Korulczyk <robert@korulczyk.pl>
7 years ago
Alexander Makarov
5e8fd58ddb
15630 fixed like escaping ( #15642 )
...
* Tests for like escaping.
* Fix for like condition escaping
* Fixed PHPDocs
* Simplify tests
7 years ago
SilverFire - Dmitry Naumenko
7e7cae7acb
Changed conditions properties visibility to private
7 years ago
SilverFire - Dmitry Naumenko
8f6e2560bc
Change BetweenColumnsCondition properties visibility
7 years ago
SilverFire - Dmitry Naumenko
1bbd2e1993
Add ExpressionInterface to Query class
7 years ago
SilverFire - Dmitry Naumenko
62d4604269
Added BetweenConditionBuilder
...
Replaces #12678 , Fixes #11611
7 years ago
remond
78a151bdae
Fixes #14859 : Fixed OCI DB `defaultSchema` failure when `masterConfig` is used
7 years ago
Roman
eb758f6f04
Fixes #15031 : Fixed incorrect string type length detection for OCI DB schema
7 years ago
Brandon Kelly
e6f5c46cdc
Fixes #15633 : Deprecate some things going away/changing in 2.1
...
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
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
CedricYii
ad128f1d86
Fixes #7640 : oci/QueryBuilder wrong namespace
...
Fix commit d165863
7 years ago
Dmitry Naumenko
de1750228d
Fixes #13879 : Added upsert support for `yii\db\QueryBuilder` and `yii\db\Command`
7 years ago
Zhukov Roman
40b038379f
Fixes #13019 : Support JSON in SchemaBuilderTrait
7 years ago
SilverFire - Dmitry Naumenko
786a733502
Moved ExpressionBuilder creation logic out of QueryBuilder::buildExpression() to a separate method
7 years ago
SilverFire - Dmitry Naumenko
b139e865b7
Fixed PHPDocs. Resolves discussion d16586334d (commitcomment-27343531)
7 years ago
Alexander Makarov
c7e55450dd
Reverted #14593
...
(reverted from commit a42bbd8f01
)
7 years ago
Alexander Makarov
a42bbd8f01
Fixes #14593 : Added `yii\db\Command::EVENT_AFTER_EXECUTE` event that is triggered after command is executed
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
hiscaler
5483a2ef6c
Fixes #15076 : Perfect `yii\db\QueryBuilder` buildColumns function
7 years ago
Гордиенко Владислав Юрьевич
1a1fb49426
Fixes #15522 : Fixed `yii\db\ActiveRecord::refresh()` method does not use an alias in the condition
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Klimov Paul
b9cbc56330
Fixed `yii\db\ActiveRecord::with()` unable to use relation defined via attached behavior in case `asArray` is enabled
7 years ago
Chris Harris
a2a79a70eb
Fixes #13814 : MySQL unique index names can now contain spaces
7 years ago
Гордиенко Владислав Юрьевич
8d50844024
#15426 : Added ability to create and drop database views
7 years ago
hiscaler
d32b80eec9
Fixes #15122 : Fixed `yii\db\Command::getRawSql()` to properly replace expressions
7 years ago
Vovan-VE
00afe6a4b8
Fix: Query::each() without `indexBy()` zero based keys
7 years ago
Alexander
f8990ac97a
Fixes #15353 : Remove side effect of ActiveQuery::getTablesUsedInFrom() introduced in 2.0.13
7 years ago
Alexander Makarov
c501e3fde8
Revert "Fixed QueryBuilder docs ( #15427 ) [skip ci]" ( #15431 )
...
This reverts commit 7d1310ace7
.
7 years ago
Alec Smythe
7d1310ace7
Fixed QueryBuilder docs ( #15427 ) [skip ci]
...
documentation is wrong ... smallint() doesn't work, but smallinteger() does
7 years ago
Sergey Makinen
a3a3d1dcef
Document callable params [skip ci]
7 years ago
Sergey Makinen
cc2e28bd0e
Add transaction/retry support for yii\db\Command
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
rossoneri
605478c043
Fixes #14157 : Add support for loading default value `CURRENT_TIMESTAMP` of MySQL `datetime` field
7 years ago
Sergey Makinen
315855f7f5
Fixes #15357 : Added multi statement support for `yii\db\sqlite\Command`
7 years ago
Chen Kui
04891af00a
Removed confusing comment about event triggering from BaseActiveRecord::init() ( #14303 ) [skip ci]
7 years ago
Гордиенко Владислав Юрьевич
dc019856b7
Fixes #15355 : Fixed `yii\db\Query::from()` does not work with `yii\db\Expression`
7 years ago
Ankit Padia
9944d7a49f
Fixed wrong description for param $table in addCommentOnTable() ( #15387 ) [skip ci]
7 years ago
Vladimir Reznichenko
185209957e
Fixes #15270 : Resolved potential race conditions when writing generated php-files
7 years ago
Sergey Makinen
b7d5393a08
Fixes #15194 : Fixed `yii\db\QueryBuilder::insert()` to preserve passed params when building a `INSERT INTO ... SELECT` query for MSSQL, PostgreSQL and SQLite
7 years ago
Carsten Brandt
7904bc2629
added note to QueryInterface::where()
7 years ago
Sergey Makinen
85b65c889a
Fixes #15117 : Fixed DB schema cache did not honor table prefixes
7 years ago
Sergey Makinen
4e176ca325
Fixes #15108 : Fixed `yii\db\Schema::getSchemaNames()` for MSSQL and added tests for all DBMSes
7 years ago