// Added two tables affected when deleting a shop : stock_available and warehouse_shop

This commit is contained in:
bMancone
2011-11-14 17:45:44 +00:00
parent 11fc755c46
commit f9059b6575
2 changed files with 26 additions and 24 deletions
+25 -23
View File
@@ -61,30 +61,32 @@ class ShopCore extends ObjectModel
protected static $shops; protected static $shops;
private static $asso_tables = array( private static $asso_tables = array(
'carrier' => array('type' => 'shop'), 'carrier' => array('type' => 'shop'),
'carrier_lang' => array('type' => 'fk_shop'), 'carrier_lang' => array('type' => 'fk_shop'),
'category_lang' => array('type' => 'fk_shop'), 'category_lang' => array('type' => 'fk_shop'),
'cms' => array('type' => 'shop'), 'cms' => array('type' => 'shop'),
'contact' => array('type' => 'shop'), 'contact' => array('type' => 'shop'),
'country' => array('type' => 'shop'), 'country' => array('type' => 'shop'),
'currency' => array('type' => 'shop'), 'currency' => array('type' => 'shop'),
'employee' => array('type' => 'shop'), 'employee' => array('type' => 'shop'),
'hook_module' => array('type' => 'fk_shop'), 'hook_module' => array('type' => 'fk_shop'),
'hook_module_exceptions' => array('type' => 'fk_shop', 'primary' => 'id_hook_module_exceptions'), 'hook_module_exceptions' => array('type' => 'fk_shop', 'primary' => 'id_hook_module_exceptions'),
'image' => array('type' => 'shop'), 'image' => array('type' => 'shop'),
'lang' => array('type' => 'shop'), 'lang' => array('type' => 'shop'),
'meta_lang' => array('type' => 'fk_shop'), 'meta_lang' => array('type' => 'fk_shop'),
'module' => array('type' => 'shop'), 'module' => array('type' => 'shop'),
'module_currency' => array('type' => 'fk_shop'), 'module_currency' => array('type' => 'fk_shop'),
'module_country' => array('type' => 'fk_shop'), 'module_country' => array('type' => 'fk_shop'),
'module_group' => array('type' => 'fk_shop'), 'module_group' => array('type' => 'fk_shop'),
'product' => array('type' => 'shop'), 'product' => array('type' => 'shop'),
'product_lang' => array('type' => 'fk_shop'), 'product_lang' => array('type' => 'fk_shop'),
'referrer' => array('type' => 'shop'), 'referrer' => array('type' => 'shop'),
'scene' => array('type' => 'shop'), 'scene' => array('type' => 'shop'),
'store' => array('type' => 'shop'), 'store' => array('type' => 'shop'),
'zone_shop' => array('type' => 'shop'), 'zone_shop' => array('type' => 'shop'),
'webservice_account' => array('type' => 'shop'), 'webservice_account' => array('type' => 'shop'),
'warehouse' => array('type' => 'shop'),
'stock_available' => array('type' => 'fk_shop'),
); );
protected $webserviceParameters = array( protected $webserviceParameters = array(
+1 -1
View File
@@ -293,7 +293,7 @@ class StockAvailableCore extends ObjectModel
} }
/** /**
* Remove a given product from the stock available * Removes a given product from the stock available
* *
* @param int $id_product * @param int $id_product
* @param int $id_product_attribute Optional * @param int $id_product_attribute Optional