Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Save a number of models in one transaction
I'm interested in ability to save a number of model in one transaction.
F.e.: I want to save a number of a timetable record model instances and I won't save them through a timetable model. Then a should rollback all written records if even one was fail.
Yes, by wrapping all your model save's in a DB transaction. See
Thank you for your answer!
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion