1533 Commits

Author SHA1 Message Date
80f2545cf1 Fixes CS (#20288) 2024-12-06 09:11:14 +03:00
883e1d81fc update links (#20219) 2024-06-30 20:45:04 +03:00
8dacd2aad7 Fix #20195: Do not set non abstract values into ColumnSchema->type on MSSQL version less then 2017 2024-06-18 12:30:42 +03:00
048eef42cd Fix #20191: Fix ActiveRecord::getDirtyAttributes() for JSON columns with multi-dimensional array values 2024-06-08 10:31:26 +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
42e6524413 Fix tests addCheck(), dropCheck() MariaDB. (#20174) 2024-05-30 18:54:15 +03:00
5ebc175768 Fix: #20171: Support JSON columns for MariaDB 10.4 or higher 2024-05-29 15:01:48 +03:00
2d2e141e3e Minor improvents. 2024-05-18 16:54:18 -04:00
14e2631fdf Normalize column names. 2024-05-18 14:03:39 -04:00
bd73df5dcf Fix MySQL version check for check constraints. 2024-05-18 13:39:02 -04:00
4996fd3d91 Add draft loadTableChecks() method, and add tests. 2024-05-18 13:35:03 -04:00
f3f2f2bb08 Apply sugestion rob006. 2024-05-18 11:43:02 -04:00
e7b6330dbb Merge branch 'master' into master 2024-05-16 15:04:21 +03:00
a733e8a6b2 Add a throws comment to BaseActiveRecord save 2024-04-14 01:30:18 +03:00
a292af13bf [PHP 8.4] Fixes for implicit nullability deprecation (#20133)
Fixes all issues that emit deprecation notices on PHP 8.4 for implicit nullable parameter type declarations.
Related to #20128.

See:
 - [RFC](https://wiki.php.net/rfc/deprecate-implicitly-nullable-types)
 - [PHP 8.4: Implicitly nullable parameter declarations deprecated](https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated)

Co-authored-by: Wilmer Arambula <terabytesoftw@gmail.com>
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2024-03-26 11:27:58 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
283499cf61 Fix #20122: Fixed parsing of boolean keywords (e.g. used in SQLite) in \yii\db\ColumnSchema::typecast() 2024-03-03 11:32:21 +03:00
dffb4c7529 Fix version in since tag 2023-12-25 12:20:09 +03:00
0263c19833 Revert 20045. 2023-11-02 08:28:05 -03:00
4a46f6763e Merge branch 'master' into fix-type-boolean-mysql 2023-10-25 14:38:13 -03:00
045996ed4b Merge branch 'master' into fix-type-boolean-mysql 2023-10-25 13:54:28 -03:00
7005d2775b Fix #20042: Add empty array check to ActiveQueryTrait::findWith() 2023-10-25 19:53:45 +03:00
9d3c71d6a7 Fix #20040: Fix type boolean in MSSQL 2023-10-25 19:47:46 +03:00
4b7669cf08 Fix boolean type MYSQL. 2023-10-25 08:37:18 -03:00
02ed808056 New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor(). 2023-10-13 13:22:48 +03:00
9de65e7959 Merge branch 'yiisoft:master' into master 2023-09-22 09:06:09 +02:00
493cbc3577 Correction on dropCheck() message 2023-09-22 09:05:32 +02:00
8aa0ac69a6 Correction on dropCheck() message 2023-09-22 09:03:50 +02:00
b05ad49a19 trim(): Passing null to parameter #1 ($string) of type string is deprecated 2023-09-11 19:38:41 +03:00
0f7248c7a2 release version 2.0.49 2023-08-29 15:36:17 +02:00
8532622d7b Fix #19911: Resolved inconsistency in ActiveRecord::getAttributeLabel() with regard of overriding in primary model labels for attributes of related model in favor of allowing such overriding for all levels of relation nesting 2023-08-26 07:06:41 +04:00
e916e9d564 Fix #19914: Fixed ArrayHelper::keyExists() and ::remove() functions when the key is a float and the value is null 2023-08-18 15:31:09 +04:00
73f57fdcb0 Fix #19872: Fixed the definition of dirty attributes in AR properties for a non-associative array in case of changing the order of elements 2023-08-18 15:19:24 +04:00
8a213315ac End fenced code block (#19919) 2023-07-28 13:13:01 +02:00
79c83ba7db Fix #9899: Fix caching a MSSQL query with BLOB data type 2023-07-24 10:03:18 +03:00
fbf48be33e Merge branch 'master' into master 2023-07-11 10:07:02 +02:00
4352b8744b Fix #19884: Added support Enums in Query Builder 2023-07-10 18:07:10 +03:00
d135996c64 Fix #19857: Fix AttributeTypecastBehavior::resetOldAttributes() causes "class has no attribute named" InvalidArgumentException 2023-07-10 17:30:32 +03:00
d94fd0f56c Removed (for Mysql QueryBuilder) NotSupportedException() when executing addheck() and dropCheck(), resolve #19819 2023-07-05 11:54:24 +02:00
3615134d3d Added method for addCheck() and dropCheck(), resolve #19817 2023-07-05 11:50:57 +02:00
6c511d99fb Fix #19759: Update docs for Command::createTable(), Migration::createTable() and QueryBuilder::createTable() 2023-06-16 07:02:22 +03:00
8228d81b25 release version 2.0.48 2023-05-22 10:32:53 +04:00
bfca9e33d9 Fix #19749: Add PHP 8.2 support
Co-authored-by: Tobias Munk <schmunk@usrbin.de>
Co-authored-by: Aldo Karendra <akarendra835@gmail.com>
Co-authored-by: Dana Luther <dana.luther@gmail.com>
Co-authored-by: Oleg Poludnenko <ua.oleg@gmail.com>
2023-05-21 15:17:59 +03:00
a8e83abd8f Fix #19743: Non-associative array values in AR weren't considered dirty when reordered 2023-05-21 12:06:16 +03:00
400df717e4 Update LikeCondition::setEscapingReplacements() phpdoc (#19830) 2023-05-09 08:52:41 +02:00
6e7d0fbff4 Fix #19816: Explicitly pass $fallbackToMaster as true to getSlavePdo() to ensure it is not affected by child class with changed defaults 2023-05-04 15:36:33 +03:00
b77caaa0b2 BC break: Calling a method unnecessarily (#19810)
* BC: Calling a method unnecessarily

Making an indirect call to the `$this->getOldAttributes()` method caused my code to break. I understand that the correct thing would be to reference `$this->_oldAttributes`.

* Null check

* Update CHANGELOG.md

* Change isAttributeDirty() method to isValueDifferent()

* Update CHANGELOG.md
2023-04-21 11:24:54 +02:00
a6ff298964 Revert "Fix #19804: Change $this->oldAttributes to $this->_oldAttributes to avoid calling a method unnecessarily"
This reverts commit 246a58163768f0b322ae28fc15200e6c33bef73f.
2023-04-18 19:57:09 +04:00
246a581637 Fix #19804: Change $this->oldAttributes to $this->_oldAttributes to avoid calling a method unnecessarily 2023-04-18 18:54:54 +03:00