public getCurrentTransaction ( ) : |
||
return | the currently active transaction. Null if no active transaction. |
public function getCurrentTransaction()
{
if ($this->_transaction !== null) {
if ($this->_transaction->getActive()) {
return $this->_transaction;
}
}
return null;
}