public getTransaction ( ) : |
||
return | the currently active transaction. Null if no active transaction. |
public function getTransaction()
{
return $this->_transaction && $this->_transaction->getIsActive() ? $this->_transaction : null;
}
public function commit() { // $this->db->flush(); $this->db->getTransaction()->commit(); }