Skip to content

Conversation

@hohanov
Copy link

@hohanov hohanov commented Nov 21, 2025

This pull request updates the documentation to correct the explanation of how database transactions interact with batch inserts. The previous description was inaccurate.

The issue was discussed here:
SpartnerNL/Laravel-Excel#4145

The behavior has been verified with tests on versions 3.1 and 4.x:
https://github.com/hohanov/Laravel-Excel/tree/3.1_test_can_roll_back_all_batches_on_error
https://github.com/hohanov/Laravel-Excel/tree/4.x_test_can_roll_back_all_batches_on_error

All batches are rolled back when an error occurs, even when batch inserts are enabled. The updated documentation now reflects the actual behavior.

@hohanov hohanov changed the title Fix incorrect rollback behavior in database transactions section Fix incorrect documentation about rollback behavior in database transactions section Nov 21, 2025
@hohanov
Copy link
Author

hohanov commented Nov 21, 2025

Should I create a PR with the mentioned tests to the main repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant