How do we use transactions in Zend 2? I didn\'t find anything in the API, and a couple questions for Zend 1 refered to the regular PDO functions, but I don\'t see anything like
The documentation is lacking a bit in this department for ZF2:
Start Transaction:
$this->adapter->getDriver()->getConnection()->beginTransaction();
Commit Transaction:
$this->adapter->getDriver()->getConnection()->commit();
Rollback Transaction:
$this->adapter->getDriver()->getConnection()->rollback();