Welcome Guest, Not a member yet? Register   Sign In
transactions using more than one model
#1

Hi again.
I would like to ask for some guidance in setting transactions across more than one model (table).
I have tried on a single model with no problem, but I fail to figure how to do multiple.
Should I just run all the queries I need from multiple tables on the same model?

As always thanks for the help and time.
Reply
#2

I have the same question.
Reply
#3

You can run as many queries as you want between the start/complete functions and they will all be committed or rolled back based on the success or failure of any given query.

So yes you can.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB