public function addDealerContactInfo(ChildDealerContactInfo $l)
    {
        if ($this->collDealerContactInfos === null) {
            $this->initDealerContactInfos();
            $this->collDealerContactInfosPartial = true;
        }

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

        return $this;
    }
public function addDealerContactInfo(ChildDealerContactInfo $l)
    {
        if ($this->collDealerContactInfos === null) {
            $this->initDealerContactInfos();
            $this->collDealerContactInfosPartial = true;
        }

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

        return $this;
    }
public function addDealerContactInfo ( ChildDealerContactInfo $ l ) { if ( $ this -> collDealerContactInfos === null ) { $ this -> initDealerContactInfos ( ) ; $ this -> collDealerContactInfosPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerContactInfos -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerContactInfo ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerContactInfo object to this object
through the ChildDealerContactInfo foreign key attribute.

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