• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
transactions using more than one model

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.

I have the same question.

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 )

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.