// StockWarehouse : updated __PS_USE_SQL_SLAVE__
This commit is contained in:
@@ -98,8 +98,8 @@ class StockWarehouseCore extends ObjectModel
|
|||||||
foreach ($id_shop_list as $id_shop)
|
foreach ($id_shop_list as $id_shop)
|
||||||
$row_to_insert = array($this->reference => $this->id, 'id_shop' => $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()->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()->autoExecute('warehouse_shop', $row_to_insert, 'INSERT');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user