$transactionSave = Mage::getModel('core/resource_transaction'); $transactionSave->addObject($model_one) $transactionSave->addObject($model_two) $transactionSave->save();
PS:偷懒下,只贴代码了
$transactionSave = Mage::getModel('core/resource_transaction'); $transactionSave->addObject($model_one) $transactionSave->addObject($model_two) $transactionSave->save();
PS:偷懒下,只贴代码了