public function resetStats(array $entities)
    {
        foreach ($entities as $entity) {
            $ids = $this->getService('repos:base.ownership')
                        ->getQuery()
                        ->ownable($entity)
                        ->disableChain()
                        ->fetchValues('owner.id');
            $entity->set('sharedOwnerCount', count($ids));
            $entity->set('sharedOwnerIds', AnDomainAttribute::getInstance('set')->setData($ids));
        }
    }