// 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
+2 -2
View File
@@ -79,9 +79,9 @@ class GroupShopCore extends ObjectModel
public static function getGroupShops($active = true)
{
$groups = new Collection('GroupShop');
$groups->where('deleted = 0');
$groups->where('deleted', '=', false);
if ($active)
$groups->where('active = 1');
$groups->where('active', '=', true);
return $groups;
}