- $subs = Subscription::bySubscriber($this->id,
- $offset,
- $limit);
-
- $profiles = array();
-
- while ($subs->fetch()) {
- $profile = Profile::getKV($subs->subscribed);
- if ($profile) {
- $profiles[] = $profile;
- }
- }
-
- return new ArrayWrapper($profiles);
+ $subs = Subscription::getSubscribedIDs($this->id, $offset, $limit);
+ $profiles = Profile::listFind('id', $subs);
+ return $profiles;