/** * {@inheritdoc} * * @return boolean */ public function close() { if ($this->db->isUnderTransaction()) { $this->db->commit(); } $this->db->close(); return true; }
/** * Checks whether internal connection is under an active transaction * * @return boolean */ public function isValid() { return $this->_connection->isUnderTransaction(); }