// StockWarehouse : updated __PS_USE_SQL_SLAVE__

This commit is contained in:
bMancone
2011-10-10 12:27:16 +00:00
parent 9510337b1d
commit 31b74d6e00
+2 -2
View File
@@ -98,8 +98,8 @@ class StockWarehouseCore extends ObjectModel
foreach ($id_shop_list as $id_shop)
$row_to_insert = array($this->reference => $this->id, 'id_shop' => $id_shop);
Db::getInstance(_PS_USE_SQL_SLAVE_)->Execute('DELETE FROM `warehouse_shop` ws WHERE ws.'.$this->identifier.' = '.(int)$this->id);
Db::getInstance(_PS_USE_SQL_SLAVE_)->autoExecute('warehouse_shop', $row_to_insert, 'INSERT');
Db::getInstance()->Execute('DELETE FROM `warehouse_shop` ws WHERE ws.'.$this->identifier.' = '.(int)$this->id);
Db::getInstance()->autoExecute('warehouse_shop', $row_to_insert, 'INSERT');
}
/**