You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Casting in insertBatch and updateBatch methods. (#9698)
* fix: Casting in insertBatch and updateBatch methods.
* Fixed coding styles and done requested changes in BaseModel.php
* Changed assertion to seeInDatabase function
* Changed assertion to seeInDatabase function in testUpdateBatchWithCasts
* Added comment to ignore argument.type by phpstan.
* Attempt to fix CPD by introducing a common casting function.
* Ran composer phpstan:baseline
* Replaced "casting only" function to more generic one.
Copy file name to clipboardExpand all lines: user_guide_src/source/changelogs/v4.6.4.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ Bugs Fixed
34
34
- **Database:** Fixed a bug in ``Connection::getFieldData()`` for ``SQLSRV`` and ``OCI8`` where extra characters were returned in column default values (specific to those handlers), instead of following the convention used by other drivers.
35
35
- **Forge:** Fixed a bug in ``Postgre`` and ``SQLSRV`` where changing a column's default value using ``Forge::modifyColumn()`` method produced incorrect SQL syntax.
36
36
- **Model:** Fixed a bug in ``Model::replace()`` where ``created_at`` field (when available) wasn't set correctly.
37
+
- **Model:** Fixed a bug in ``Model::insertBatch()`` and ``Model::updateBatch()`` where casts were not applied to inserted or updated values.
0 commit comments