// Change prototype of methods from(), leftJoin(), innerJoin(), leftOuterJoin() and naturalJoin() for DbQuery class

This commit is contained in:
rMalie
2011-12-19 11:13:13 +00:00
parent 82a8c98d3a
commit 1302bdb194
23 changed files with 183 additions and 202 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ class WarehouseProductLocationCore extends ObjectModel
// build query
$query = new DbQuery();
$query->select('wpl.location');
$query->from('warehouse_product_location wpl');
$query->from('warehouse_product_location', 'wpl');
$query->where('wpl.id_product = '.(int)$id_product.'
AND wpl.id_product_attribute = '.(int)$id_product_attribute.'
AND wpl.id_warehouse = '.(int)$id_warehouse
@@ -98,7 +98,7 @@ class WarehouseProductLocationCore extends ObjectModel
// build query
$query = new DbQuery();
$query->select('wpl.id_warehouse_product_location');
$query->from('warehouse_product_location wpl');
$query->from('warehouse_product_location', 'wpl');
$query->where('wpl.id_product = '.(int)$id_product.'
AND wpl.id_product_attribute = '.(int)$id_product_attribute.'
AND wpl.id_warehouse = '.(int)$id_warehouse