original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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)
docstring_tokens: Method called to associate a ChildCustomerGroupI18n object to this object through the ChildCustomerGroupI18n foreign key attribute .