Welcome Guest, Not a member yet? Register   Sign In
What's the best way to determine if two tables were updated successfully using Active Record?
#4

[eluser]Jondolar[/eluser]
There may be a problem with noctrum's solution in that if the first update is successful and the second update is not successful, you may have an orphaned record. It depends on your requirements so if adding the first record without adding the second record is okay, then the above solution will work. Otherwise, you'll need to remove the first record before returning false or use a database transaction.


Messages In This Thread
What's the best way to determine if two tables were updated successfully using Active Record? - by El Forum - 08-06-2010, 05:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB