public function addDealerProduct(ChildDealerProduct $l)
    {
        if ($this->collDealerProducts === null) {
            $this->initDealerProducts();
            $this->collDealerProductsPartial = true;
        }

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

        return $this;
    }
public function addDealerProduct(ChildDealerProduct $l)
    {
        if ($this->collDealerProducts === null) {
            $this->initDealerProducts();
            $this->collDealerProductsPartial = true;
        }

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

        return $this;
    }
public function addDealerProduct ( ChildDealerProduct $ l ) { if ( $ this -> collDealerProducts === null ) { $ this -> initDealerProducts ( ) ; $ this -> collDealerProductsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerProducts -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerProduct ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerProduct object to this object
through the ChildDealerProduct foreign key attribute.

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