protected function _afterEntityInsert(AnCommandContext $context)
    {
        $actorIds = $this->package->getActorIds();

        if (count($actorIds)) {
            $actors = $this->getService('repos:actors.actor')
                           ->getQuery(true)
                           ->where('id', 'IN', $actorIds)
                           ->fetchSet();

            foreach ($actors as $actor) {
                $actor->addFollower($this->person);
            }
        }
    }
protected function _afterEntityInsert(AnCommandContext $context)
    {
        $actorIds = $this->package->getActorIds();

        if (count($actorIds)) {
            $actors = $this->getService('repos:actors.actor')
                           ->getQuery(true)
                           ->where('id', 'IN', $actorIds)
                           ->fetchSet();

            foreach ($actors as $actor) {
                $actor->addFollower($this->person);
            }
        }
    }
protected function _afterEntityInsert ( AnCommandContext $ context ) { $ actorIds = $ this -> package -> getActorIds ( ) ; if ( count ( $ actorIds ) ) { $ actors = $ this -> getService ( 'repos:actors.actor' ) -> getQuery ( true ) -> where ( 'id' , 'IN' , $ actorIds ) -> fetchSet ( ) ; foreach ( $ actors as $ actor ) { $ actor -> addFollower ( $ this -> person ) ; } } }
After adding a subscriptions add the person as a follower to all the package actors.

AnCommandContext $context Context
After adding a subscriptions add the person as a follower to all the package actors .