/** * Commits a running transaction. * * This causes a flush() of the EntityManager if the flush mode is set to * AUTO or COMMIT. * * @return boolean */ public function commit() { if ($this->_flushMode == self::FLUSHMODE_AUTO || $this->_flushMode == self::FLUSHMODE_COMMIT) { $this->flush(); } return $this->_conn->commitTransaction(); }