Klimov Paul
b9cbc56330
Fixed yii\db\ActiveRecord::with() unable to use relation defined via attached behavior in case asArray is enabled
2018-01-23 12:46:56 +02:00
Chris Harris
a2a79a70eb
Fixes #13814 : MySQL unique index names can now contain spaces
2018-01-22 00:27:58 +03:00
Гордиенко Владислав Юрьевич
8d50844024
#15426 : Added ability to create and drop database views
2018-01-19 11:21:07 +03:00
hiscaler
d32b80eec9
Fixes #15122 : Fixed yii\db\Command::getRawSql() to properly replace expressions
2018-01-18 01:34:07 +03:00
Vovan-VE
00afe6a4b8
Fix: Query::each() without indexBy() zero based keys
2018-01-16 17:13:19 +02:00
Alexander
f8990ac97a
Fixes #15353 : Remove side effect of ActiveQuery::getTablesUsedInFrom() introduced in 2.0.13
2018-01-15 13:02:28 +03:00
Alexander Makarov
c501e3fde8
Revert "Fixed QueryBuilder docs ( #15427 ) [skip ci]" ( #15431 )
...
This reverts commit 7d1310ace7 .
2017-12-29 17:21:37 +03:00
Alec Smythe
7d1310ace7
Fixed QueryBuilder docs ( #15427 ) [skip ci]
...
documentation is wrong ... smallint() doesn't work, but smallinteger() does
2017-12-29 11:36:40 +03:00
Sergey Makinen
a3a3d1dcef
Document callable params [skip ci]
2017-12-26 14:03:15 +03:00
Sergey Makinen
f199b2bfff
Merge branch 'master' of https://github.com/yiisoft/yii2 into command-txn-retry
2017-12-26 13:20:25 +03:00
Sergey Makinen
cc2e28bd0e
Add transaction/retry support for yii\db\Command
2017-12-26 13:10:36 +03:00
SilverFire - Dmitry Naumenko
8f2cd050af
Fixed Query not to dig inside Expression
2017-12-21 16:16:33 +02:00
Alexander Makarov
7e8a4c8629
Minor adjustments
2017-12-21 02:50:50 +03:00
Alexander Makarov
ba931fa21d
Fixes #15356 : Fixed multiple bugs in yii\db\Query::getTablesUsedInFrom()
2017-12-21 01:35:08 +03:00
vladis
6c731d46d0
#15356 : Initial version of yii\db\Query::getTablesUsedInFrom() fix and tests
2017-12-21 01:33:58 +03:00
rossoneri
605478c043
Fixes #14157 : Add support for loading default value CURRENT_TIMESTAMP of MySQL datetime field
2017-12-20 01:45:01 +03:00
Sergey Makinen
315855f7f5
Fixes #15357 : Added multi statement support for yii\db\sqlite\Command
2017-12-20 00:02:14 +03:00
Chen Kui
04891af00a
Removed confusing comment about event triggering from BaseActiveRecord::init() ( #14303 ) [skip ci]
2017-12-19 21:50:44 +03:00
Гордиенко Владислав Юрьевич
dc019856b7
Fixes #15355 : Fixed yii\db\Query::from() does not work with yii\db\Expression
2017-12-19 21:42:54 +03:00
Ankit Padia
9944d7a49f
Fixed wrong description for param $table in addCommentOnTable() ( #15387 ) [skip ci]
2017-12-19 13:59:43 +03:00
Vladimir Reznichenko
185209957e
Fixes #15270 : Resolved potential race conditions when writing generated php-files
2017-12-02 18:24:56 +03:00
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
2017-11-24 15:19:34 +07:00
Carsten Brandt
7904bc2629
added note to QueryInterface::where()
2017-11-14 11:27:17 +01:00
Sergey Makinen
85b65c889a
Fixes #15117 : Fixed DB schema cache did not honor table prefixes
2017-11-11 23:42:41 +03:00
Sergey Makinen
4e176ca325
Fixes #15108 : Fixed yii\db\Schema::getSchemaNames() for MSSQL and added tests for all DBMSes
2017-11-07 19:20:14 +03:00
Alexander Makarov
2d672b6722
release version 2.0.13
2017-11-03 01:09:29 +03:00
Alexander Makarov
fb23b0d0ea
Code style fixes
2017-11-01 02:43:02 +03:00
Carsten Brandt
93bbf5b39d
Fixes #15015 : Added StringHelper::floatToString() to savely cast float values independent of the locale, also fixes some places in the framework that use it now
2017-10-27 11:41:45 +03:00
Pavel Dovlatov
6330a2b779
Small phpdoc fix in \yii\db\QueryTrait::emulateExecution() [skip ci] ( #15021 )
2017-10-25 16:55:51 +03:00
Dmitry Naumenko
7e7faeebd1
Fixed excess escaping in Command::batchInsert() ( #13236 )
2017-10-23 22:43:39 +03:00
Nelson J Morais
980cfde0f1
Fixes #14877 : Disabled profiling on connection opening when profiling is disabled
2017-10-20 01:28:05 +03:00
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
2017-10-19 01:54:40 +03:00
Dmitry Kulikov
1e0157f0ac
Fixes #7316 : Documentation for ActiveRelationTrait::inverseOf() [skip ci] ( #14892 )
2017-10-07 18:59:53 +02:00
Alexander Makarov
1f24fd35b9
Fixes #14910 : adjusted safeUp()/safeDown() docs [skip ci]
2017-10-04 15:47:03 +01:00
santilin
6eae7fba59
Fixed typo: an => a in batchInsert [skip ci]
2017-10-02 21:15:31 +02:00
Michael Härtl
5522d1909c
Clarify how joinWith()/innerJoinWith() deals with eager loading [skip ci]
2017-09-19 23:43:23 +02:00
SilverFire - Dmitry Naumenko
f9fd4da8de
Fixed MySQL 5.7 compatibility
...
’’’
General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column information_schema.kcu.ORDINAL_POSITION
’’’
2017-09-16 08:52:47 +03:00
SilverFire - Dmitry Naumenko
5aedb9e040
Fixed typo in PHPDocs
2017-09-12 16:55:29 +03:00
Gediminas Šedbaras
4c61d96786
Corrected return type of BaseActiveRecord::findOne ( #14798 )
2017-09-11 22:31:00 +02:00
Klimov Paul
9e6f9e3b6d
Fixed serialization of yii\db\Connection instance closes database connection
2017-09-01 13:30:56 +03:00
Paul Klimov
d68789a195
Fixes #13779 , fixes #5786
...
- #13779 : Fixed `yii\db\ActiveRecord::joinWith()` unable to use relation defined via attached behavior.
- #5786 : Allowed to use custom constructors in ActiveRecord-based classes.
2017-08-29 15:13:28 +03:00
Francis Lavoie
9588c8f5a4
Fixes #13853 : Added yii\db\Migration::$compact as well as yii\console\controllers\BaseMigrateController::$compact to allow making the migration console output more compact
2017-08-25 13:30:28 +03:00
Carsten Brandt
98a71d8b0d
Adjust QueryInterface and QueryTrait types on where() ( #14714 )
...
these did never allow a string condition. Only SQL Query and AR implementation do.
fixes #14496
2017-08-24 10:59:20 +02:00
SilverFire - Dmitry Naumenko
79ad74f763
Fixed wrong PHPDoc annotaion in ActiveRecordInterface
...
Closes #14496
2017-08-24 11:06:17 +03:00
Carsten Brandt
8ff3756d55
remove loop over an array with one element
...
small optimization, fixes #12061
2017-08-22 13:03:01 +02:00
Robert Korulczyk
5a8c3d537b
Enable phpdoc_summary rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
Carsten Brandt
cda3089623
Fixed batchInsert casting of double values according to locale ( #14448 )
...
fixes #6526
2017-08-13 22:15:04 +02:00
forevermatt
1d44de7b15
Fix abstract column type for unsigned primary key ( #14626 ) [skip ci]
2017-08-11 02:59:40 +03:00
Alexander Makarov
1f26db9fb7
Applied code style fixes
2017-07-21 15:42:06 +03:00