// 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:
@@ -94,7 +94,7 @@ class OrderPaymentCore extends ObjectModel
|
||||
public static function getByInvoiceId($id_invoice)
|
||||
{
|
||||
$payments = new Collection('OrderPayment');
|
||||
$payments->where('a.id_order_invoice = '.(int)$id_invoice);
|
||||
$payments->where('id_order_invoice', '=', $id_invoice);
|
||||
return $payments;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user