public function addDealerContactInfoI18n(ChildDealerContactInfoI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collDealerContactInfoI18ns === null) {
            $this->initDealerContactInfoI18ns();
            $this->collDealerContactInfoI18nsPartial = true;
        }

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

        return $this;
    }
public function addDealerContactInfoI18n(ChildDealerContactInfoI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collDealerContactInfoI18ns === null) {
            $this->initDealerContactInfoI18ns();
            $this->collDealerContactInfoI18nsPartial = true;
        }

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

        return $this;
    }
public function addDealerContactInfoI18n ( ChildDealerContactInfoI18n $ l ) { if ( $ l && $ locale = $ l -> getLocale ( ) ) { $ this -> setLocale ( $ locale ) ; $ this -> currentTranslations [ $ locale ] = $ l ; } if ( $ this -> collDealerContactInfoI18ns === null ) { $ this -> initDealerContactInfoI18ns ( ) ; $ this -> collDealerContactInfoI18nsPartial = true ; } if ( ! in_array ( $ l , $ this -> collDealerContactInfoI18ns -> getArrayCopy ( ) , true ) ) { // only add it if the **same** object is not already associated $ this -> doAddDealerContactInfoI18n ( $ l ) ; } return $ this ; }
Method called to associate a ChildDealerContactInfoI18n object to this object
through the ChildDealerContactInfoI18n foreign key attribute.

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