public function addDealerVersion(ChildDealerVersion $l)
    {
        if ($this->collDealerVersions === null) {
            $this->initDealerVersions();
            $this->collDealerVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerVersion(ChildDealerVersion $l)
    {
        if ($this->collDealerVersions === null) {
            $this->initDealerVersions();
            $this->collDealerVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerVersion ( ChildDealerVersion $ l ) { if ( $ this -> collDealerVersions === null ) { $ this -> initDealerVersions ( ) ; $ this -> collDealerVersionsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerVersions -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerVersion ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerVersion object to this object
through the ChildDealerVersion foreign key attribute.

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