给Magento的模块保存添加事务(transaction)
$transactionSave = Mage::getModel('core/resource_transaction'); $transactionSave->addObject($model_one) $transactionSave->addObject($model_two) $transactionSave->save();
PS:偷懒下,只贴代码了
最后更新:2017-04-02 22:16:21
$transactionSave = Mage::getModel('core/resource_transaction'); $transactionSave->addObject($model_one) $transactionSave->addObject($model_two) $transactionSave->save();
PS:偷懒下,只贴代码了
最后更新:2017-04-02 22:16:21