src/DlcDoctrine/Event/CommitTransactionListener.php
public function onFinish(MvcEvent $event)
    {
        $connection = $this->getObjectManager()->getConnection();
        
        if ($connection->isTransactionActive()) {
            $connection->commit();
        }
    }
public function onFinish(MvcEvent $event)
    {
        $connection = $this->getObjectManager()->getConnection();
        
        if ($connection->isTransactionActive()) {
            $connection->commit();
        }
    }
public function onFinish ( MvcEvent $ event ) { $ connection = $ this -> getObjectManager ( ) -> getConnection ( ) ; if ( $ connection -> isTransactionActive ( ) ) { $ connection -> commit ( ) ; } }
Listen to the "finish" event and attempt to commit a transaction

@param  MvcEvent $e
Listen to the finish event and attempt to commit a transaction