- while ($raw->fetch()) {
- if ($this->filter($raw)) {
- $filtered[] = clone($raw);
- if (count($filtered >= $total)) {
+ $notices = $raw->fetchAll();
+ $this->prefill($notices);
+ foreach ($notices as $notice) {
+ if ($this->filter($notice)) {
+ $filtered[] = $notice->id;
+ if (count($filtered) >= $total) {