public function resetStats($actors)
    {
        foreach ($actors as $actor) {
            $ids = $actor->notificationIds->toArray();
            $ids = $this->getService('repos:notifications.notification')->getQuery()->id($ids)->fetchValues('id');
            $actor->set('notificationIds', AnDomainAttribute::getInstance('set')->setData($ids));
            $new_ids = array();

            foreach ($actor->newNotificationIds as $id) {
                if (in_array($id, $ids)) {
                    $new_ids[] = $id;
                }
            }

            $actor->set('newNotificationIds', AnDomainAttribute::getInstance('set')->setData($new_ids));
        }
    }
public function resetStats($actors)
    {
        foreach ($actors as $actor) {
            $ids = $actor->notificationIds->toArray();
            $ids = $this->getService('repos:notifications.notification')->getQuery()->id($ids)->fetchValues('id');
            $actor->set('notificationIds', AnDomainAttribute::getInstance('set')->setData($ids));
            $new_ids = array();

            foreach ($actor->newNotificationIds as $id) {
                if (in_array($id, $ids)) {
                    $new_ids[] = $id;
                }
            }

            $actor->set('newNotificationIds', AnDomainAttribute::getInstance('set')->setData($new_ids));
        }
    }
public function resetStats ( $ actors ) { foreach ( $ actors as $ actor ) { $ ids = $ actor -> notificationIds -> toArray ( ) ; $ ids = $ this -> getService ( 'repos:notifications.notification' ) -> getQuery ( ) -> id ( $ ids ) -> fetchValues ( 'id' ) ; $ actor -> set ( 'notificationIds' , AnDomainAttribute :: getInstance ( 'set' ) -> setData ( $ ids ) ) ; $ new_ids = array ( ) ; foreach ( $ actor -> newNotificationIds as $ id ) { if ( in_array ( $ id , $ ids ) ) { $ new_ids [ ] = $ id ; } } $ actor -> set ( 'newNotificationIds' , AnDomainAttribute :: getInstance ( 'set' ) -> setData ( $ new_ids ) ) ; } }
Reset stats.

@param array $actor An array of notifiable actors
Reset stats .