Skip to content

Instantly share code, notes, and snippets.

Jan Pecha janpecha

Block or report user

Report or block janpecha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:bc9566e95f21ad7b2ef0
// $foo = Mage::getModel('.....
// $bar = Mage::getModel('.....
$transaction = Mage::getModel('core/resource_transaction');
$transaction->save(); // runs save on all objects. On error -> rollback
You can’t perform that action at this time.