public function addTeamI18n(ChildTeamI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collTeamI18ns === null) {
            $this->initTeamI18ns();
            $this->collTeamI18nsPartial = true;
        }

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

        return $this;
    }
public function addTeamI18n(ChildTeamI18n $l)
    {
        if ($l && $locale = $l->getLocale()) {
            $this->setLocale($locale);
            $this->currentTranslations[$locale] = $l;
        }
        if ($this->collTeamI18ns === null) {
            $this->initTeamI18ns();
            $this->collTeamI18nsPartial = true;
        }

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

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

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