public function getTransaction() { return $this->_transaction && $this->_transaction->getIsActive() ? $this->_transaction : null; }
public function commit() { // $this->db->flush(); $this->db->getTransaction()->commit(); }