Skip to content

Instantly share code, notes, and snippets.

@donvitonet
Last active December 13, 2015 17:08
Show Gist options
  • Save donvitonet/4945034 to your computer and use it in GitHub Desktop.
Save donvitonet/4945034 to your computer and use it in GitHub Desktop.
$dataSource = $this->getDataSource();
$dataSource->begin();
try {
$dataSource->commit();
} catch( Exception $e ) {
$dataSource->rollback();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment