public function addDealerProductVersion(ChildDealerProductVersion $l)
    {
        if ($this->collDealerProductVersions === null) {
            $this->initDealerProductVersions();
            $this->collDealerProductVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerProductVersion(ChildDealerProductVersion $l)
    {
        if ($this->collDealerProductVersions === null) {
            $this->initDealerProductVersions();
            $this->collDealerProductVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerProductVersion ( ChildDealerProductVersion $ l ) { if ( $ this -> collDealerProductVersions === null ) { $ this -> initDealerProductVersions ( ) ; $ this -> collDealerProductVersionsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerProductVersions -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerProductVersion ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerProductVersion object to this object
through the ChildDealerProductVersion foreign key attribute.

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