where($table.'.site_id','=',Company::instance()->site()); else return $db; } // Add the site_id to the update query final public static function update($table = NULL) { $db = new Database_Query_Builder_Update($table); if (! in_array($table,ORM::$no_site_id_tables)) return $db->where($table.'.site_id','=',Company::instance()->site()); else return $db; } } ?>