// Improve collections : where() method reworked (prototype changed) + validation of fields
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11383 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -117,7 +117,7 @@ class WarehouseProductLocationCore extends ObjectModel
|
||||
public static function getCollection($id_product)
|
||||
{
|
||||
$collection = new Collection('WarehouseProductLocation');
|
||||
$collection->where('a.id_product = '.(int)$id_product);
|
||||
$collection->where('id_product', '=', $id_product);
|
||||
return $collection;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user