public function addDealerContentVersion(ChildDealerContentVersion $l)
    {
        if ($this->collDealerContentVersions === null) {
            $this->initDealerContentVersions();
            $this->collDealerContentVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerContentVersion(ChildDealerContentVersion $l)
    {
        if ($this->collDealerContentVersions === null) {
            $this->initDealerContentVersions();
            $this->collDealerContentVersionsPartial = true;
        }

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

        return $this;
    }
public function addDealerContentVersion ( ChildDealerContentVersion $ l ) { if ( $ this -> collDealerContentVersions === null ) { $ this -> initDealerContentVersions ( ) ; $ this -> collDealerContentVersionsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerContentVersions -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerContentVersion ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerContentVersion object to this object
through the ChildDealerContentVersion foreign key attribute.

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