Anton
3203353a38
Remove code duplication in `ActiveRecord::attributes()`
3 years ago
Anton
cb5e180695
Fix PhpDoc of `yii\db\pgsql\QueryBuilder::normalizeTableRowData()` ( #19234 )
3 years ago
Alexander Makarov
9fbdc9f01b
Fix #18821 : Additional type fixes ( #19217 )
3 years ago
ntesic
730f0e56b5
Fix #18821 : Allow `yii\db\ExpressionInterface` as column in `yii\db\conditions\InBuilder`
3 years ago
Long TRAN
6a36fa82c7
Fix #19047 , fix #19118 : Fix deprecated preg_match() passing null parameters #2 in db\mysql\Schema.php
3 years ago
Aurélien Chretien
942e726a8d
Fix #19176 : Add #[\ReturnTypeWillChange] on MSSQL classes ( #19177 )
3 years ago
stevekr
67ea4cf968
Fix #19148 : Fix undefined array key errors in `yii\db\ActiveRelationTrait`
3 years ago
Alexander Makarov
1271bc419f
Fix #19041 : Fix PHP 8.1 issues
3 years ago
Bilal
e353835cc5
Fixed typo ( #19134 )
3 years ago
Alexander Makarov
655786b7ed
release version 2.0.44
3 years ago
Alexey Rogachev
1e41533789
(Docs) Normalized existing "virtual" / "magic" methods' descriptions, add missing ones ( #19066 )
3 years ago
rhertogh
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()`
3 years ago
Alexey Rogachev
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
3 years ago
Anton
c8d027f649
Fix #18993 : Load defaults by `attributes()` in `yii\db\ActiveRecord::loadDefaultValues()`
3 years ago
Alexey Rogachev
fa6f0ef658
Fix variable references in phpdoc ( #19006 )
3 years ago
Bizley
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
3 years ago
BIKI DAS
14a28ab4f4
docs improvment ( #18935 )
3 years ago
Alexander Gubarev
e3028c524d
Fix #18899 : Replace usages of `strpos` with `strncmp` and remove redundant usage of `array_merge` and `array_values`
3 years ago
Anton
fdbdbb51fb
Fix #18886 : Fix default return of `yii\db\Migration::safeUp()` and `yii\db\Migration::safeDown()`
3 years ago
Alexander Makarov
540a9011af
release version 2.0.43
3 years ago
Allan
c905c10c93
Document that link() will not trigger events/behaviors ( #18683 )
3 years ago
Anton
22c7cef869
Fix PhpDoc in yii\db\Query ( #18752 )
3 years ago
Anton
d9928455e3
Fix PhpDoc for yii\db\{QueryInterface,Query} ( #18753 )
3 years ago
egorrishe
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>
3 years ago
Игорь Тарасов
ed8fbaa8b1
fix QueryInterface::count return type
3 years ago
Игорь Тарасов
330166e703
fix Exception\Throwable order
3 years ago
蛋蛋
d5a428e001
Fix some code smells ( #18696 )
3 years ago
Bizley
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>
3 years ago
Bizley
82be8b61cf
Replacing deprecated `::className()` with `::class` ( #18671 )
3 years ago
Allan
ddeb80cdf3
Fixed typo
3 years ago
Bizley
52cf02d685
Fix #18634 : Fix `yii\db\BaseActiveRecord::unlink()` and `unlinkAll()` to omit condition for `on` property when it doesn't exist
3 years ago
Alexander Makarov
88a7a00458
release version 2.0.42
3 years ago
Alexander Makarov
26656a2ed1
Minor cleanup
3 years ago
DarkDef
f14b2ccd89
remove duplicate code
3 years ago
Valerii Gorbachev
a7ee99ce92
Update framework/db/mssql/QueryBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Valerii Gorbachev
662c54b47c
Update framework/db/mssql/ColumnSchemaBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
DarkDef
2d76f33dd4
Fixes after review
3 years ago
Valerii Gorbachev
12ccd2adde
Update framework/db/mssql/QueryBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Valerii Gorbachev
a0552f1680
Update framework/db/mssql/QueryBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Valerii Gorbachev
98b0c5b665
Update framework/db/mssql/ColumnSchemaBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Valerii Gorbachev
dbc4d1ecea
Update framework/db/mssql/ColumnSchemaBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Valerii Gorbachev
a1cc222927
Update framework/db/mssql/QueryBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
Valerii Gorbachev
01a9fef962
Update framework/db/mssql/ColumnSchemaBuilder.php
...
Co-authored-by: Bizley <pawel@positive.codes>
3 years ago
DarkDef
4fba562cd0
New attemp
3 years ago
DarkDef
9367af4b15
Fix for issue #18604
3 years ago
Alexander Makarov
f62701bf1d
Fixed another call
3 years ago
Alexander Makarov
ffec508e58
Do not use $this to call static method
3 years ago
AIZAWA Hina
ad2ce6ad4f
Fix event namespace in `yii\db\Connection` phpdoc ( #18608 )
3 years ago
Sartor
335385d7ba
Db pgsql getRawSql params replace fix
4 years ago
Dmytro Naumenko
10bb71a822
Fix #17203 : Fix `yii\db\Connection` to persist customized `queryBuilder` configuration after the `close()` → `open()` cycle
4 years ago