public function flush() { parent::flush(); $this->cacheRM = []; $hash = spl_object_hash($this->connection); if (isset(self::$transactions[$hash])) { $this->connection->commitTransaction(); unset(self::$transactions[$hash]); } }