public function addPersonTeamLink(ChildPersonTeamLink $l)
    {
        if ($this->collPersonTeamLinks === null) {
            $this->initPersonTeamLinks();
            $this->collPersonTeamLinksPartial = true;
        }

        if (!in_array($l, $this->collPersonTeamLinks->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddPersonTeamLink($l);
        }

        return $this;
    }
public function addPersonTeamLink(ChildPersonTeamLink $l)
    {
        if ($this->collPersonTeamLinks === null) {
            $this->initPersonTeamLinks();
            $this->collPersonTeamLinksPartial = true;
        }

        if (!in_array($l, $this->collPersonTeamLinks->getArrayCopy(), true)) { // only add it if the **same** object is not already associated
            $this->doAddPersonTeamLink($l);
        }

        return $this;
    }
public function addPersonTeamLink ( ChildPersonTeamLink $ l ) { if ( $ this -> collPersonTeamLinks === null ) { $ this -> initPersonTeamLinks ( ) ; $ this -> collPersonTeamLinksPartial = true ; } if ( ! in_array ( $ l , $ this -> collPersonTeamLinks -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddPersonTeamLink ( $ l ) ; } return $ this ; }
Method called to associate a ChildPersonTeamLink object to this object
through the ChildPersonTeamLink foreign key attribute.

@param    ChildPersonTeamLink $l ChildPersonTeamLink
@return   \Team\Model\Person The current object (for fluent API support)
Method called to associate a ChildPersonTeamLink object to this object through the ChildPersonTeamLink foreign key attribute .