Skip to content

Conversation

michalsn
Copy link
Member

@michalsn michalsn commented Sep 5, 2025

Description
This PR updates BaseModel so that insertBatch() and updateBatch() now respect model-level properties, like updateOnlyChanged and allowEmptyInserts. Previously, these methods bypassed these settings, which caused inconsistent behavior compared to insert() and update(). With this change, all insert and update operations are handled consistently.

This is a follow-up for #9698

Checklist:

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

@michalsn michalsn added enhancement PRs that improve existing functionalities 4.7 labels Sep 5, 2025
@michalsn michalsn merged commit e39c749 into codeigniter4:4.7 Sep 5, 2025
50 checks passed
@michalsn
Copy link
Member Author

michalsn commented Sep 5, 2025

Thank you @paulbalandan

@michalsn michalsn deleted the feat/batchMethods branch September 6, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.7 enhancement PRs that improve existing functionalities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants