public function addDealerBrand(ChildDealerBrand $l)
    {
        if ($this->collDealerBrands === null) {
            $this->initDealerBrands();
            $this->collDealerBrandsPartial = true;
        }

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

        return $this;
    }
public function addDealerBrand(ChildDealerBrand $l)
    {
        if ($this->collDealerBrands === null) {
            $this->initDealerBrands();
            $this->collDealerBrandsPartial = true;
        }

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

        return $this;
    }
public function addDealerBrand ( ChildDealerBrand $ l ) { if ( $ this -> collDealerBrands === null ) { $ this -> initDealerBrands ( ) ; $ this -> collDealerBrandsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerBrands -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerBrand ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerBrand object to this object
through the ChildDealerBrand foreign key attribute.

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