Skip to content

feat(entity): properly convert arrays of entities in toRawArray()#9841

Merged
michalsn merged 3 commits intocodeigniter4:4.7from
michalsn:feat/entity-to-raw-array
Dec 27, 2025
Merged

feat(entity): properly convert arrays of entities in toRawArray()#9841
michalsn merged 3 commits intocodeigniter4:4.7from
michalsn:feat/entity-to-raw-array

Conversation

@michalsn
Copy link
Member

Description
This PR enhances the Entity::toRawArray() method to properly handle arrays of entities when using recursive mode. Previously, entity properties containing arrays of entities were not being recursively converted, which limited the method's usefulness for complex entity hierarchies.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added enhancement PRs that improve existing functionalities breaking change Pull requests that may break existing functionalities 4.7 labels Dec 14, 2025
@michalsn michalsn force-pushed the feat/entity-to-raw-array branch from f3b50d8 to c99b7c0 Compare December 26, 2025 09:39
@michalsn michalsn merged commit 877d1da into codeigniter4:4.7 Dec 27, 2025
50 checks passed
@michalsn
Copy link
Member Author

Thank you for the review @paulbalandan and @datamweb!

@michalsn michalsn deleted the feat/entity-to-raw-array branch January 6, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Pull requests that may break existing functionalities enhancement PRs that improve existing functionalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants