1449 Commits

Author SHA1 Message Date
1e41533789 (Docs) Normalized existing "virtual" / "magic" methods' descriptions, add missing ones (#19066) 2021-12-08 12:27:28 +03:00
81a3b83995 Fix #19021: Fix return type in PhpDoc yii\db\Migration functions up(), down(), safeUp() and safeDown()
* Fixed PhpDoc in Migration.php (revert #18886)

Fixed the return type of `up()`, `down()`, `safeUp()` and `safeDown()` functions to match the described behavior.
The current implementation checks for `false`, "all other return values mean the migration succeeds".
This PR also reverts #18886 since it was a code fix for what was documentation error.

Allow all possible values for `yii\db\Migration` functions `up()`, `down()`, `safeUp()` and `safeDown()`
2021-11-22 00:43:53 +03:00
552593ca3b Prepare for new apidoc (part 2) (#19010)
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
c8d027f649 Fix #18993: Load defaults by attributes() in yii\db\ActiveRecord::loadDefaultValues() 2021-11-12 00:25:08 +03:00
fa6f0ef658 Fix variable references in phpdoc (#19006) 2021-11-10 13:26:55 +03:00
0041f034fd [doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net

* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
14a28ab4f4 docs improvment (#18935) 2021-10-05 10:13:33 +02:00
e3028c524d Fix #18899: Replace usages of strpos with strncmp and remove redundant usage of array_merge and array_values 2021-09-28 11:06:46 +03:00
fdbdbb51fb Fix #18886: Fix default return of yii\db\Migration::safeUp() and yii\db\Migration::safeDown() 2021-09-19 12:38:06 +03:00
540a9011af release version 2.0.43 2021-08-09 20:38:43 +03:00
c905c10c93 Document that link() will not trigger events/behaviors (#18683) 2021-08-07 17:04:25 +03:00
22c7cef869 Fix PhpDoc in yii\db\Query (#18752) 2021-07-29 02:19:01 +03:00
d9928455e3 Fix PhpDoc for yii\db\{QueryInterface,Query} (#18753) 2021-07-27 22:44:47 +03:00
17742cb146 don't convert int to string if db type of column is numeric (#18741)
* write adequate test for issue #14663

* don't convert int to string if db type of column is numeric (#14663)

* fix bigint schema test for MySql >8.0.17 (#14663)

* Update CHANGELOG.md

* Update CHANGELOG.md

* update phpdoc [ci skip] (#14663)

* refactoring test case to make it clearer [ci skip] (#14663)

* check `int unsigned` in `QueryBuilderTest::testInsertInteger()` (#14663)

* Update Upgrade.md (#14663)

* fix `int unsigned` schema test for MySql >8.0.17 (#14663)

* fix `int unsigned` schema test for MySql <5.7 (#14663)

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2021-07-06 20:49:01 +02:00
fd1d4f75fe Merge branch 'master' into dicr-queryinterface-count 2021-06-15 15:19:07 +03:00
ed8fbaa8b1 fix QueryInterface::count return type 2021-06-13 18:41:01 +05:00
330166e703 fix Exception\Throwable order 2021-06-13 18:07:43 +05:00
d5a428e001 Fix some code smells (#18696) 2021-06-05 13:37:45 +03:00
7966fe47e6 Scrutinizer fixes (#18685)
* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/filters/AccessRule.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/helpers/BaseFileHelper.php?selectedLabels%5B0%5D=2&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Application.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Module.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/MultipartFormDataParser.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/web/Session.php?selectedLabels%5B0%5D=7&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/base/Controller.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* Added vardocs, and small refactor

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/conditions/InConditionBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/Connection.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/db/mssql/QueryBuilder.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/log/Logger.php?selectedLabels%5B0%5D=6&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/BaseMigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* Adding space between type

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/CacheController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/FixtureController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* https://scrutinizer-ci.com/g/yiisoft/yii2/issues/master/files/framework/console/controllers/MigrateController.php?selectedLabels%5B0%5D=18&selectedSeverities%5B0%5D=10&selectedSeverities%5B1%5D=5&orderField=path&order=asc&honorSelectedPaths=0

* Update framework/console/controllers/CacheController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/CacheController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Update framework/console/controllers/FixtureController.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2021-05-31 21:07:36 +03:00
82be8b61cf Replacing deprecated ::className() with ::class (#18671) 2021-05-22 23:14:54 +03:00
ddeb80cdf3 Fixed typo 2021-05-19 07:32:35 +02:00
52cf02d685 Fix #18634: Fix yii\db\BaseActiveRecord::unlink() and unlinkAll() to omit condition for on property when it doesn't exist 2021-05-06 13:04:40 +03:00
88a7a00458 release version 2.0.42 2021-05-06 00:08:29 +03:00
26656a2ed1 Minor cleanup 2021-05-05 19:29:51 +03:00
f14b2ccd89 remove duplicate code 2021-04-28 18:32:43 +03:00
a7ee99ce92 Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-28 18:28:20 +03:00
662c54b47c Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-28 18:27:30 +03:00
2d76f33dd4 Fixes after review 2021-04-27 12:15:31 +03:00
12ccd2adde Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:09:32 +03:00
a0552f1680 Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:09:14 +03:00
98b0c5b665 Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:08:22 +03:00
dbc4d1ecea Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:08:15 +03:00
a1cc222927 Update framework/db/mssql/QueryBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:08:06 +03:00
01a9fef962 Update framework/db/mssql/ColumnSchemaBuilder.php
Co-authored-by: Bizley <pawel@positive.codes>
2021-04-27 12:07:38 +03:00
4fba562cd0 New attemp 2021-04-26 19:24:14 +03:00
9367af4b15 Fix for issue #18604 2021-04-25 20:19:14 +03:00
f62701bf1d Fixed another call 2021-04-24 11:33:59 +03:00
ffec508e58 Do not use $this to call static method 2021-04-23 21:36:24 +03:00
ad2ce6ad4f Fix event namespace in yii\db\Connection phpdoc (#18608) 2021-04-20 09:53:48 +03:00
395dc70468 Merge branch 'master' into fix/db-pgsql-raw-sql-params 2021-04-01 23:49:53 +03:00
335385d7ba Db pgsql getRawSql params replace fix 2021-04-01 19:37:50 +03:00
10bb71a822 Fix #17203: Fix yii\db\Connection to persist customized queryBuilder configuration after the close()open() cycle 2021-04-01 01:10:16 +03:00
42e8aa4ea5 Fix #18325: Fix yii\db\pgsql\Schema to respect non-default PgSQL schema name for data types
Co-authored-by: SilverFire - Dmitry Naumenko <d.naumenko.a@gmail.com>
2021-04-01 00:52:02 +03:00
64ecbf10b1 Fix for issue #18526
DbCache doesn't working using MSSQL/SqlServer
2021-03-15 22:47:54 +03:00
54f25c4b04 Fix #17174: Fix yii\db\BaseActiveRecord::unlink() to not ignore on conditions in via relations 2021-03-14 19:04:07 +03:00
4479c66522 Fixed phpdoc types 2021-03-12 23:41:48 +03:00
6dad27d4a1 Reversed #18499 (#18546) 2021-03-04 12:53:11 +03:00
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
1ace064848 Pre-release adjustments 2021-03-03 20:52:52 +03:00
dfef7f8365 Fix #18539: Fix "driver does not support quoting" when using the driver pdo_odbc 2021-03-03 10:11:00 +03:00