// Improve collections : where() method reworked (prototype changed) + validation of fields

This commit is contained in:
rMalie
2011-12-19 16:57:28 +00:00
parent 219f3ac870
commit b2b678ab3d
15 changed files with 240 additions and 67 deletions
+1 -1
View File
@@ -264,7 +264,7 @@ class SupplyOrderCore extends ObjectModel
public function getEntriesCollection()
{
$details = new Collection('SupplyOrderDetail');
$details->where('a.id_supply_order = '.(int)$this->id);
$details->where('id_supply_order', '=', $this->id);
return $details;
}