src/ORM/TransactionMiddleware.php
protected function rollbackTransaction()
    {
        $this->entityManager->rollback();

        $connection = $this->entityManager->getConnection();
        if (!$connection->isTransactionActive() || $connection->isRollbackOnly()) {
            $this->entityManager->close();
        }
    }
protected function rollbackTransaction()
    {
        $this->entityManager->rollback();

        $connection = $this->entityManager->getConnection();
        if (!$connection->isTransactionActive() || $connection->isRollbackOnly()) {
            $this->entityManager->close();
        }
    }
protected function rollbackTransaction ( ) { $ this -> entityManager -> rollback ( ) ; $ connection = $ this -> entityManager -> getConnection ( ) ; if ( ! $ connection -> isTransactionActive ( ) || $ connection -> isRollbackOnly ( ) ) { $ this -> entityManager -> close ( ) ; } }
Rollback the current transaction and close the entity manager when possible.
Rollback the current transaction and close the entity manager when possible .