public function addDealerBrandVersion(ChildDealerBrandVersion $l)
    {
        if ($this->collDealerBrandVersions === null) {
            $this->initDealerBrandVersions();
            $this->collDealerBrandVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerBrandVersion(ChildDealerBrandVersion $l)
    {
        if ($this->collDealerBrandVersions === null) {
            $this->initDealerBrandVersions();
            $this->collDealerBrandVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerBrandVersion ( ChildDealerBrandVersion $ l ) { if ( $ this -> collDealerBrandVersions === null ) { $ this -> initDealerBrandVersions ( ) ; $ this -> collDealerBrandVersionsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerBrandVersions -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerBrandVersion ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerBrandVersion object to this object
through the ChildDealerBrandVersion foreign key attribute.

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