Model/Base/CustomerGroup.php
public function addCustomerGroupI18n(ChildCustomerGroupI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collCustomerGroupI18ns === null) {
            $this->initCustomerGroupI18ns();
            $this->collCustomerGroupI18nsPartial = true;
        }

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

        return $this;
    }
public function addCustomerGroupI18n(ChildCustomerGroupI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collCustomerGroupI18ns === null) {
            $this->initCustomerGroupI18ns();
            $this->collCustomerGroupI18nsPartial = true;
        }

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

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

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