Transaction with multiple models |
Hello, this is for a to-do project.
I will insert data into two models, and I want to use a transaction. Where and how should this transaction be managed? I was thinking of doing it in the service layer, but I wanted to ask. If you have any other suggestions, please let me know. Model Names:
This may help you out for doing it in a Controller etc.
Struggling with transaction using multiple models What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Hello @kuzeyybora i implemented with service layer and it looked like this:
PHP Code: class SettingsService Does this implementation make sense to you? |
Welcome Guest, Not a member yet? Register Sign In |