|
Is a cftransaction type of commit/rollback possible with Reactor?
I have two records to insert in sequence. I’d like to validate both of them and only commit them together. The catch is that the 2nd record depends on getting the last_insert_id from the first record created during the 1st record.save() step. Normally I’d have 3 queries (insert 1, get_last_id, insert 2) setup within a cftransaction.
I’m sure this is a common issue, what’s the best practice? Any feedback on this topic would be great. Thanks in advance! Dan
P.S. This is more of a concept question, so I’m leaving code out, but let me know if code would be helpful.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |
- [Reactor for CF] Does Reactor have some type of cftransact... Dan Sorensen
- Re: [Reactor for CF] Does Reactor have some type of c... João Fernandes
- RE: [Reactor for CF] Does Reactor have some type of c... Marc Funaro
- Re: [Reactor for CF] Does Reactor have some type of c... João Fernandes
- RE: [Reactor for CF] Does Reactor have some type of c... Marc Funaro
