diff --git a/library/Icinga/Data/Db/Connection.php b/library/Icinga/Data/Db/Connection.php index 2a8d118fe..7abe5b0b4 100644 --- a/library/Icinga/Data/Db/Connection.php +++ b/library/Icinga/Data/Db/Connection.php @@ -117,6 +117,7 @@ class Connection implements DatasourceInterface } else { $this->dbType = strtolower(get_class($this->db->getConnection())); } + $this->db->setFetchMode(Zend_Db::FETCH_OBJ); if ($this->dbType === null) { Logger::warn('Could not determine database type');