[*] Classes : Db::autoExecute() call are now replaced by Db::insert() or Db::update()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12624 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-23 17:41:02 +00:00
parent 03083929a1
commit a4d97911b1
29 changed files with 251 additions and 235 deletions
+3 -3
View File
@@ -145,7 +145,7 @@ class WarehouseCore extends ObjectModel
DELETE FROM '._DB_PREFIX_.'warehouse_shop
WHERE '.$this->def['primary'].' = '.(int)$this->id);
Db::getInstance()->autoExecute(_DB_PREFIX_.'warehouse_shop', $row_to_insert, 'INSERT');
Db::getInstance()->insert('warehouse_shop', $row_to_insert);
}
/**
@@ -190,7 +190,7 @@ class WarehouseCore extends ObjectModel
WHERE '.$this->def['primary'].' = '.(int)$this->id);
if ($row_to_insert)
Db::getInstance()->autoExecute(_DB_PREFIX_.'warehouse_carrier', $row_to_insert, 'INSERT');
Db::getInstance()->insert('warehouse_carrier', $row_to_insert);
}
/**
@@ -263,7 +263,7 @@ class WarehouseCore extends ObjectModel
'location' => pSQL($location),
);
return Db::getInstance()->autoExecute(_DB_PREFIX_.'warehouse_product_location', $row_to_insert, 'INSERT');
return Db::getInstance()->insert('warehouse_product_location', $row_to_insert);
}
/**