• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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