Returns the currently active transaction.
public getTransaction ( ) : |
||
리턴 | the currently active transaction. Null if no active transaction. |
public function commit() { // $this->db->flush(); $this->db->getTransaction()->commit(); }