Skip to content

Instantly share code, notes, and snippets.

@code-poel
Last active August 29, 2015 14:06
Show Gist options
  • Save code-poel/905c51b09cdf154de808 to your computer and use it in GitHub Desktop.
Save code-poel/905c51b09cdf154de808 to your computer and use it in GitHub Desktop.
Magento transactions...
<?php
$transaction = Mage::getModel('core/resource_transaction');
$transaction->addObject($model_a)
$transaction->addObject($model_b)
$transaction->save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment