public static function save($machine_)
 {
     Logger::debug('main', 'Starting Abstract_VDI::save for \'' . $machine_->id . '\'');
     $SQL = SQL::getInstance();
     $id = $machine_->id;
     if (!Abstract_VDI::exists($machine_->id)) {
         Logger::debug('main', "Abstract_VDI::save({$machine_}) virtual machine does NOT exist, we must create it");
         if (!Abstract_VDI::create($machine_)) {
             Logger::error('main', "Abstract_VDI::save({$machine_}) create failed");
             return false;
         }
     }
     $SQL->DoQuery('UPDATE #1 SET @4=%5,@6=%7,@8=%9,@10=%11,@12=%13,@14=%15,@16=%17,@18=%19,@20=%21,@22=%23 WHERE @2 = %3 LIMIT 1', self::table, 'id', $id, 'type', $machine_->type, 'name', $machine_->name, 'server', $machine_->server, 'master_id', $machine_->master_id, 'used_by', $machine_->used_by, 'cpu_model', $machine_->cpu_model, 'cpu_nb_cores', $machine_->cpu_nb_cores, 'ram_total', $machine_->ram_total, 'status', $machine_->status, 'ip', $machine_->ip);
     return true;
 }