static function forGroup($group, $offset, $limit) { // XXX: cache $gm = new Group_message(); $gm->to_group = $group->id; $gm->orderBy('created DESC'); $gm->limit($offset, $limit); $gm->find(); return $gm; }