Skip to content

Commit f63d78f

Browse files
committed
fix: remove redundant objectToRawArray method and update changelog
1 parent 26bcef9 commit f63d78f

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

system/Model.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -711,11 +711,6 @@ public function update($id = null, $row = null): bool
711711
return parent::update($id, $row);
712712
}
713713

714-
protected function objectToRawArray($object, bool $onlyChanged = true, bool $recursive = false): array
715-
{
716-
return parent::objectToRawArray($object, $onlyChanged, $recursive);
717-
}
718-
719714
/**
720715
* Provides/instantiates the builder/db connection and model's table/primary key names and return type.
721716
*

user_guide_src/source/changelogs/v4.7.4.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Bugs Fixed
3232

3333
- **Database:** Fixed a bug where ``updateBatch()`` could be called after Query Builder ``where()`` conditions, even though it's not supported. In this situation, now the ``DatabaseException`` is thrown.
3434
- **HTTP:** Fixed a bug where the User Agent library reported Safari's WebKit version instead of the browser version from the ``Version`` token.
35+
- **Model:** Fixed a bug in ``Model::objectToRawArray()`` where the ``$recursive`` parameter was ignored.
3536

3637
See the repo's
3738
`CHANGELOG.md <https://github.com/codeigniter4/CodeIgniter4/blob/develop/CHANGELOG.md>`_

0 commit comments

Comments
 (0)