If I want to perform a transaction on multiple models.  In the newest
version of Cake 1.2, is there a 'right' way to do it?  It worked when
I chose any random model involved in the transaction and used:

$this->Model1->begin();
$this->Model1->save();
$this->Model2->save();
...
$this->Model1->rollback();

In doing this, the changes for every model rolled back fine.  Does it
seem incorrect (maybe just conventionally) to use a model to control
the transaction over all the other models?  Or is there a global type
of transaction I should be using?

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to