currently there is no chance to call $db->begin... without
modification. if model tables are stored on different databases:
class AppController extends Controller
{
var $__transactions = array();
function __getDbConnections()
{
$models = ClassRegistry::map
currently there is no chance to call $db->begin... without
modification. if model tables are stored on different databases
(global rollback)
-> http://bin.cakephp.org/saved/25650
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
> 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?
AFAIK there is no global types of transactions
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->rollb