public function addDealerContactVersion(ChildDealerContactVersion $l)
    {
        if ($this->collDealerContactVersions === null) {
            $this->initDealerContactVersions();
            $this->collDealerContactVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerContactVersion(ChildDealerContactVersion $l)
    {
        if ($this->collDealerContactVersions === null) {
            $this->initDealerContactVersions();
            $this->collDealerContactVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerContactVersion ( ChildDealerContactVersion $ l ) { if ( $ this -> collDealerContactVersions === null ) { $ this -> initDealerContactVersions ( ) ; $ this -> collDealerContactVersionsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerContactVersions -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerContactVersion ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerContactVersion object to this object
through the ChildDealerContactVersion foreign key attribute.

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