public function getCurrentTransaction() { if ($this->_transaction !== null) { if ($this->_transaction->getActive()) { return $this->_transaction; } } return null; }