public function setOwner($owner)
    {
        //multiple owners are passed
        $owner = AnConfig::unbox($owner);

        if (is_array($owner)) {
            deprecated('array as owner');
        }

        if (is_array($owner) && $this->isSharable()) {
            $owners = AnHelperArray::unique($owner);
            //remove the first owner as the primary owner
            $owner = array_shift($owners);
            //create an edge with the story for each secondary owner
            //$this->addOwner($owners);
        }
        $this->_mixer->set('owner', $owner);

        return $this;
    }
public function setOwner($owner)
    {
        //multiple owners are passed
        $owner = AnConfig::unbox($owner);

        if (is_array($owner)) {
            deprecated('array as owner');
        }

        if (is_array($owner) && $this->isSharable()) {
            $owners = AnHelperArray::unique($owner);
            //remove the first owner as the primary owner
            $owner = array_shift($owners);
            //create an edge with the story for each secondary owner
            //$this->addOwner($owners);
        }
        $this->_mixer->set('owner', $owner);

        return $this;
    }
public function setOwner ( $ owner ) { //multiple owners are passed $ owner = AnConfig :: unbox ( $ owner ) ; if ( is_array ( $ owner ) ) { deprecated ( 'array as owner' ) ; } if ( is_array ( $ owner ) && $ this -> isSharable ( ) ) { $ owners = AnHelperArray :: unique ( $ owner ) ; //remove the first owner as the primary owner $ owner = array_shift ( $ owners ) ; //create an edge with the story for each secondary owner //$this->addOwner($owners); } $ this -> _mixer -> set ( 'owner' , $ owner ) ; return $ this ; }
Set the owner of the object. If multiple owners are passed then the first owner is the
primary owner and the rest just share the object with the owner.

@param ComActorsDomainEntityActor $owner The owner object

@return ComBaseDomainEntityNode Return the ownable object
Set the owner of the object . If multiple owners are passed then the first owner is the primary owner and the rest just share the object with the owner .