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