Uh oh!
There was an error while loading. Please reload this page.
fix(model): pass $recursive parameter to parent in objectToRawArray - #10258
Conversation
Hi there, gr8man! 👋 Thank you for sending this PR! We expect the following in all Pull Requests (PRs).
Important We expect all code changes or bug-fixes to be accompanied by one or more tests added to our test suite to prove the code works. If pull requests do not comply with the above, they will likely be closed. Since we are a team of volunteers, we don't have any more time to work See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md Sincerely, the mergeable bot 🤖 |
You need to add the fix in |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
paulbalandan
commented
Jun 11, 2026
Thank you, @gr8man |
Fix a bug in
Model::objectToRawArray()where the$recursiveparameter was accepted but never forwarded toBaseModel::objectToRawArray(). The method calledparent::objectToRawArray($object, $onlyChanged)without the third argument, causing nested Entity objects to always be returned as objects instead of recursively converting them to arrays when$recursive=true.Checklist: