public function addDealerContact(ChildDealerContact $l)
    {
        if ($this->collDealerContacts === null) {
            $this->initDealerContacts();
            $this->collDealerContactsPartial = true;
        }

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

        return $this;
    }
public function addDealerContact(ChildDealerContact $l)
    {
        if ($this->collDealerContacts === null) {
            $this->initDealerContacts();
            $this->collDealerContactsPartial = true;
        }

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

        return $this;
    }
public function addDealerContact ( ChildDealerContact $ l ) { if ( $ this -> collDealerContacts === null ) { $ this -> initDealerContacts ( ) ; $ this -> collDealerContactsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerContacts -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerContact ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerContact object to this object
through the ChildDealerContact foreign key attribute.

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