1277 Commits

Author SHA1 Message Date
2da6773b68 Fixes #17089: Fixed caching of related records when via() using with callable 2019-02-13 23:22:07 +03:00
ed64d65886 release version 2.0.16 2019-01-31 00:54:16 +01:00
adf8f9a32f Fixes #15931: yii\db\ActiveRecord::findOne() now accepts quoted table and column names using curly and square braces respectively 2019-01-20 17:20:43 +03:00
025dd072c6 Replaces commit dfcf037c7. The prvious idea was wrong and broke some tests 2019-01-20 13:50:27 +02:00
dfcf037c76 ActiveQuery::viaTable() now throws exception on wrongly prepared query
Closes #15876
2019-01-20 12:33:26 +02:00
4333b90186 Fixes #15482: AR::find()->with() missing data when using string identifiers for relations 2019-01-14 18:50:56 -05:00
7ccadb4a79 Fixes #15167: Fixed loading of default value current_timestamp() for MariaDB >= 10.2.3 2019-01-11 17:47:40 -05:00
698e45ac1e Fixed code style 2019-01-02 18:24:16 +02:00
d02fb4e3dd Reduce the Cyclomatic Complexity level 2019-01-01 13:01:12 +03:00
a7771acd8d Add ArrayExpression support in related tables 2019-01-01 02:39:55 +03:00
b128ec85f4 Fixes #16081: Fixed composite IN using just one column 2018-12-31 06:41:25 -05:00
3907895324 Fixes #16897: Fixed yii\db\sqlite\Schema missing primary key constraint detection in case of INTEGER PRIMARY KEY 2018-11-22 23:57:00 +03:00
ae5dee485e Improve Query PHPDoc [skip ci]. (#16834) 2018-10-27 20:37:56 +03:00
b8c2c7fb5e Fixes #16424: yii\db\Transaction::begin() throws now NotSupportedException for nested transaction and DBMS not supporting savepoints 2018-10-23 00:24:05 +03:00
00fe20e675 Wrong annotations for yii\db\QueryTrait::where($condition)(#16794) (#16803) [skip ci] 2018-10-20 00:08:00 +03:00
9f383ab228 Fixes #14367: In yii\db\mysql\QueryBuilder added support fractional seconds for time types for MySQL >= 5.6.4 2018-10-11 14:43:32 +03:00
682c7b4a2a added comment about non-looping foreach
fixes #16727
2018-10-05 17:50:03 +02:00
b0f2a52219 Fixes #16748: Fixed params when normalize data 2018-10-02 01:24:39 +03:00
7119ff5756 Fixes #16151: Change of scope for method getTableNameAndAlias() 2018-09-19 19:31:43 +03:00
87af257892 Fixes #5341: HasMany via two relations 2018-09-09 23:45:32 +03:00
5ee7fabbf9 Fixes #16552: Added check in yii\db\ActiveQuery::prepare() to prevent populating already populated relation when another relation is requested with via 2018-09-09 23:44:10 +03:00
cd442339df Revert "Fixes #16552: Added check in yii\db\ActiveQuery::prepare() to prevent populating already populated relation when another relation is requested with via"
This reverts commit f69612f7927ee8e599a22a0b83b73f64b628b8f0.
2018-09-08 00:37:22 +03:00
f69612f792 Fixes #16552: Added check in yii\db\ActiveQuery::prepare() to prevent populating already populated relation when another relation is requested with via 2018-08-04 01:20:17 +03:00
32c7c4161b Fixes #16192: yii\db\Command::logQuery() is now protected, extracted getCacheKey() from queryInternal() 2018-07-28 00:39:16 +08:00
84c55b468a [minor] SCA (#16464)
* Php Inspections (EA Ultimate): new findings

* Php Inspections (EA Ultimate): dealing with older PHP versions compatibility
2018-07-01 01:04:48 +03:00
3555633223 Fixes #14289: Added yii\db\Command::executeResetSequence() to work with Oracle 2018-06-27 22:29:50 +03:00
6590feef0d Fixes #16192: yii\db\Command::logQuery() is now protected 2018-06-03 16:30:53 +03:00
292a545642 Fixes #16104: Fixed yii\db\pgsql\QueryBuilder::dropIndex() to prepend index name with schema name 2018-05-31 17:37:14 +03:00
22f570cefd Merge pull request #16277 from noname007/patch-1
fix bug: when use ActiveQuery subquery
2018-05-14 13:26:26 +03:00
282152e984 Update Connection.php
fix event phpdoc types
2018-05-14 12:13:26 +02:00
e47ac0c4a4 fix bug: when use a subquery 2018-05-14 18:04:53 +08:00
6dd2aec011 [minor]: SCA (#16269)
* Php Inspections (EA Ultimate): minor code tweaks

* Php Inspections (EA Ultimate): code style

* Php Inspections (EA Ultimate): code style

* Php Inspections (EA Ultimate): code style
2018-05-14 12:00:01 +03:00
1945dc69c7 Fixes #9133: Added yii\behaviors\OptimisticLockBehavior 2018-05-12 14:43:13 +03:00
cc2cac58d2 Fixed bad instnaceof check in yii\db\Schema::getTableMetadata() 2018-05-12 14:18:13 +03:00
Sam
84cb255aab Fixes #16245: Fixed __isset() in BaseActiveRecord not catching errors 2018-05-11 11:04:00 +03:00
cb15a413a7 Fix ODBC Driver 13 for SQL Server error on null (#16039) 2018-04-29 11:05:11 +03:00
56a3d21c24 Minor refactoring of BaseActiveRecord::populateRelation() (#16161) 2018-04-26 19:09:26 +03:00
2a3428c9e9 Fixes #15875: afterSave for new models flushes unsaved data 2018-04-24 19:40:21 +03:00
abeb3b1a37 Fixes #16073: Fixed regression in Oracle IN condition builder for more than 1000 items 2018-04-13 14:53:06 +03:00
ab092f2e21 Fixes #15117: Fixed yii\db\Schema::getTableMetadata cache refreshing 2018-04-06 16:49:17 +03:00
b195d9e780 optimize table name 2018-03-21 18:07:30 +01:00
0af1c05d6a yii\db\ActiveRecord::findOne() now accepts column names prefixed with table name
fixes #15931
2018-03-21 17:44:22 +01:00
a33b09dab3 remove ColumnSchema import from mysql Schema because it conflicts with existing class 2018-03-20 13:40:28 +01:00
a38302fdfd improved filtering condition on yii\db\ActiveRecord 2018-03-20 11:42:28 +01:00
5f75916cde Wording adjustments and doc enhancements [skip ci] 2018-03-20 11:20:56 +01:00
b37f361ad7 Fixed possible SQL injection through ActiveRecord::findOne() 2018-03-20 11:20:56 +01:00
f33959419a Fixes #15878: Fixed migration with a comment containing an apostrophe 2018-03-20 11:19:10 +01:00
4bfe5e7a49 release version 2.0.14.2 2018-03-13 16:15:01 +02:00
4ad04be2ea Fixed null saving for JSON and Array cols in AR
Fixes #15863
2018-03-13 16:03:46 +02:00
7a38c795b4 Merge pull request #15868 from SilverFire/mysql-json-cast-15839
Fixed JsonExpressionBuilder to cast JSON explicitly
2018-03-13 12:30:09 +02:00