/** * {@inheritdoc} * * @return boolean */ public function close() { if ($this->db->isUnderTransaction()) { $this->db->commit(); } $this->db->close(); return true; }