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));
        }
    }
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));
        }
    }
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 ) ) ; } }
Reset share stats.

@param array $entities
Reset share stats .