public function addPersonFunctionI18n(ChildPersonFunctionI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collPersonFunctionI18ns === null) {
            $this->initPersonFunctionI18ns();
            $this->collPersonFunctionI18nsPartial = true;
        }

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

        return $this;
    }
public function addPersonFunctionI18n(ChildPersonFunctionI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collPersonFunctionI18ns === null) {
            $this->initPersonFunctionI18ns();
            $this->collPersonFunctionI18nsPartial = true;
        }

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

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

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