summaryrefslogtreecommitdiff
path: root/app/php/db/DBConnection.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/db/DBConnection.php')
-rw-r--r--app/php/db/DBConnection.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/app/php/db/DBConnection.php b/app/php/db/DBConnection.php
deleted file mode 100644
index 92ab0fb..0000000
--- a/app/php/db/DBConnection.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-Prado::using('Application.db.DBTransaction');
-Prado::using('System.Data.TDbConnection');
-
-class DBConnection extends TDbConnection {
-
- private $_transaction = NULL;
- public function getCurrentTransaction() {
- if (!$this->_transaction->getActive()) {
- $this->_transaction = NULL;
- }
- return $this->_transaction;
- }
-
- public function beginTransaction() {
- if ($this->_transaction && $this->_transaction->getActive()) {
- $this->_transaction->beginNestedTransaction();
- }
- else {
- $this->_transaction = parent::beginTransaction();
- }
- return $this->_transaction;
- }
-
-}
-
-?>