Welcome Guest, Not a member yet? Register   Sign In
Database Transactions With Multiple Active Records Calls In Separate PHP Functions
#2

[eluser]bretticus[/eluser]
Like the manual says, you can run as many queries as you like as long as you run trans_begin() first and trans_complete() when done (unless you roll back of course.) Your create and contact methods are using AR I assume, so I see no problem calling those methods in a wrapper method as you have demonstrated. Just make sure your tables are InnoDB and not MyISAM.


Messages In This Thread
Database Transactions With Multiple Active Records Calls In Separate PHP Functions - by El Forum - 09-02-2010, 10:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB