public function addDealerContent(ChildDealerContent $l)
    {
        if ($this->collDealerContents === null) {
            $this->initDealerContents();
            $this->collDealerContentsPartial = true;
        }

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

        return $this;
    }
public function addDealerContent(ChildDealerContent $l)
    {
        if ($this->collDealerContents === null) {
            $this->initDealerContents();
            $this->collDealerContentsPartial = true;
        }

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

        return $this;
    }
public function addDealerContent ( ChildDealerContent $ l ) { if ( $ this -> collDealerContents === null ) { $ this -> initDealerContents ( ) ; $ this -> collDealerContentsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerContents -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerContent ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerContent object to this object
through the ChildDealerContent foreign key attribute.

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