125 Commits

Author SHA1 Message Date
8b50a4942a Fix @var tags syntax in framework folder (#20392) 2025-06-03 19:57:08 +03:00
a6257d8f46 Fix #20226: Revert all PR for "Data providers perform unnecessary COUNT queries that negatively affect performance" 2024-07-12 08:48:58 +03:00
140570d186 Remove cache \yii\data\ActiveDataProvider::prepareTotalCount() (#20206) 2024-06-17 13:20:35 +03:00
3fa2d61e54 Fix #20175: Fix bad result for pagination when used with GridView 2024-06-08 10:29:40 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
90c0eb02d1 Fix #20055: Fix Response header X-Pagination-Total-Count is always 0 2024-05-16 12:03:03 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
c8c0ea97c4 Fix #19899: Fixed GridView in some cases calling Model::generateAttributeLabel() to generate label values that are never used 2023-07-24 11:52:38 +03:00
e8bf240c80 Small update in language (#19769)
* Use correct English terms

* Use a better word
2023-02-20 08:07:38 +01:00
55ea8eee1e Fix sorting link for multisort with default order (#19733)
* Add sort tests

* Fix link for multisort

* changelog

* Fix test
2023-01-10 12:16:04 +01:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02:00
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
fa6f0ef658 Fix variable references in phpdoc (#19006) 2021-11-10 13:26:55 +03: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
7332cc2cba Fix an invalid phpDoc annotation of yii\data\DataProviderInterface::getSort(). (#18897) 2021-09-22 19:13:09 +02:00
463a67bc73 Add ability to turn the sorting off for a clicked column in GridView with multisort (#18826)
* Add ability to turn the sorting off for a clicked column in GridView with multisort

* Update Sort.php

* Fix SortTest

* Update CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>
2021-08-11 13:37:37 +02:00
d5a428e001 Fix some code smells (#18696) 2021-06-05 13:37:45 +03:00
9a7f778194 Fix #18557: Fix yii\data\ActiveDataProvider to handle DB connection configuration of different type than just yii\db\Connection 2021-03-14 18:43:25 +03:00
4479c66522 Fixed phpdoc types 2021-03-12 23:41:48 +03:00
bd2b1f25f0 Fix #18552: Fix bug with yii\data\SqlDataProvider not properly handling SQL with ORDER BY clause 2021-03-10 23:28:45 +03:00
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
13cda988e7 #18475: Correct conditional configuration of db property 2021-01-13 11:35:50 +03:00
f544883148 Fix #18472: Fix initializing db component configuration 2021-01-11 14:54:39 +03:00
19da4511fb Fix #18472: Fix initializing db component configuration in yii\data\ActiveDataProvider 2021-01-11 11:16:52 +03:00
ee0fe97a45 Fix #18370: Add option to provide a string replacement for null value in yii\data\DataFilter 2020-11-10 16:13:21 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
67728476ec Fix #16418: Fixed yii\data\Pagination::getLinks() to return links to the first and the last pages regardless of the current page 2020-09-21 00:18:52 +03:00
2d15c484ef Fix #17961: Fix pagination pageSizeLimit ignore if set as array with more then 2 elements 2020-05-02 12:03:01 +03:00
70f9ab858b release version 2.0.33 2020-03-24 23:03:06 +03:00
a19dd48b79 Fix #7622: Allow yii\data\ArrayDataProvider to control the sort flags for sortModels through yii\data\Sort::sortFlags property 2020-02-04 11:56:35 +03:00
561242be5e Fix Sort:: setAttributeOrders() phpdoc (#17663) [skip ci] 2019-11-12 20:18:10 +02:00
8cc74f5c57 Fixes #17156: Fixes PHP 7.2 warning when a data provider has no data as a parameter for a GridView 2019-02-28 11:02:08 +03:00
26789ed04e Fixes #17093 by reverting #16891 (#17154) 2019-02-23 00:29:20 +03:00
768d590eef added missing @since annotations 2019-01-31 00:45:25 +01:00
e1623868f9 Fixes #16891: Fixed Pagination::totalCount initialized incorrectly 2019-01-01 13:24:14 -05:00
e53fc0ded1 Fixes #16558: Added cloning yii\data\ActiveDataProvider::query property when ActiveDataProvider object is cloned 2018-08-05 15:18:24 +03:00
1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
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()`
2018-02-11 01:48:29 +03:00
5550ad2021 Fixes #15595: yii\data\DataFilter can now handle lt,gt,lte and gte on yii\validators\DateValidator 2018-02-05 22:54:45 +07:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
ec76b624a9 Adjusted new message quotes style [skip ci] 2017-11-03 00:39:38 +03:00
fb23b0d0ea Code style fixes 2017-11-01 02:43:02 +03:00
376006a2d5 Data filter enhancements and docs
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
2017-10-26 11:32:52 +03:00
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
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
1f26db9fb7 Applied code style fixes 2017-07-21 15:42:06 +03:00