I was wondering if there is a function such as mysql rollback commit available in Zend Framework 2?
I need to insert multiply rows in the same tabel coming from one form submit.
Nick
I was wondering if there is a function such as mysql rollback commit available in Zend Framework 2?
I need to insert multiply rows in the same tabel coming from one form submit.
Nick
In ZF2, the beginTransaction(), commit() and rollback() methods are in the ConnectionInterface.
As far as I can see, you probably have to write code something like this:
$dbAdapter->getDriver()->getConnection()->beginTransaction();
. . .
$dbAdapter->getDriver()->getConnection()->commit();
See: http://framework.zend.com/apidoc/2.1/classes/Zend.Db.Adapter.Driver.ConnectionInterface.html