public function getCommonLeaders($actor)
    {
        if (!isset($this->__common_leaders)) {
            $ids = array_intersect($this->leaderIds->toArray(), $actor->leaderIds->toArray());
            $ids[] = -1;
            $query = $this->getService('repos:actors.actor')->getQuery()->where('id', 'IN', $ids);

            $this->__common_leaders = $query->toEntitySet();
        }

        return $this->__common_leaders;
    }
public function getCommonLeaders($actor)
    {
        if (!isset($this->__common_leaders)) {
            $ids = array_intersect($this->leaderIds->toArray(), $actor->leaderIds->toArray());
            $ids[] = -1;
            $query = $this->getService('repos:actors.actor')->getQuery()->where('id', 'IN', $ids);

            $this->__common_leaders = $query->toEntitySet();
        }

        return $this->__common_leaders;
    }
public function getCommonLeaders ( $ actor ) { if ( ! isset ( $ this -> __common_leaders ) ) { $ ids = array_intersect ( $ this -> leaderIds -> toArray ( ) , $ actor -> leaderIds -> toArray ( ) ) ; $ ids [ ] = - 1 ; $ query = $ this -> getService ( 'repos:actors.actor' ) -> getQuery ( ) -> where ( 'id' , 'IN' , $ ids ) ; $ this -> __common_leaders = $ query -> toEntitySet ( ) ; } return $ this -> __common_leaders ; }
Return this person common leader with another person.

@param ComActorsDomainEntityActor $actor Actor for which to get the common leaders

@return AnDomainEntitysetDefault
Return this person common leader with another person .