public function setDbAdapter($config)
    {
        if(is_array($config)) {
            $this->odbAdapter = new DbAdapter(array_merge(array(
                'driver' => 'Pdo_Mysql',
                'driver_options' => array(
                    PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'UTF8'"
                )
            ), $config));

            $config = new \Zend\Config\Config($config, true);
            $writer = new \Zend\Config\Writer\PhpArray();
            $conf = $writer->toString($config);
        }
    }