public function addDealerAdmin(ChildDealerAdmin $l)
    {
        if ($this->collDealerAdmins === null) {
            $this->initDealerAdmins();
            $this->collDealerAdminsPartial = true;
        }

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

        return $this;
    }
public function addDealerAdmin(ChildDealerAdmin $l)
    {
        if ($this->collDealerAdmins === null) {
            $this->initDealerAdmins();
            $this->collDealerAdminsPartial = true;
        }

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

        return $this;
    }
public function addDealerAdmin ( ChildDealerAdmin $ l ) { if ( $ this -> collDealerAdmins === null ) { $ this -> initDealerAdmins ( ) ; $ this -> collDealerAdminsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerAdmins -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerAdmin ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerAdmin object to this object
through the ChildDealerAdmin foreign key attribute.

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