Repository navigation
2.7.2 — Fix bulk delete, force delete and restore in generated controllers
Changes generated output only: regenerate controllers to pick up the fixes. Existing code is not touched.
Fixed
- Bulk delete, force delete and restore no longer stop half-way: the
->each()callbacks returned the model'sdelete()/forceDelete()/restore()result, and afalsereturn ended the loop. They now return nothing. - User template:
destroy()runs in a transaction, andbulkDestroy()deletes the models one by one instead of with a query-level delete, so model events and soft deletes apply.