public function addGroup(ChildGroup $l)
    {
        if ($this->collGroups === null) {
            $this->initGroups();
            $this->collGroupsPartial = true;
        }

        if (!$this->collGroups->contains($l)) {
            $this->doAddGroup($l);
        }

        return $this;
    }
public function addGroup(ChildGroup $l)
    {
        if ($this->collGroups === null) {
            $this->initGroups();
            $this->collGroupsPartial = true;
        }

        if (!$this->collGroups->contains($l)) {
            $this->doAddGroup($l);
        }

        return $this;
    }
public function addGroup ( ChildGroup $ l ) { if ( $ this -> collGroups === null ) { $ this -> initGroups ( ) ; $ this -> collGroupsPartial = true ; } if ( ! $ this -> collGroups -> contains ( $ l ) ) { $ this -> doAddGroup ( $ l ) ; } return $ this ; }
Method called to associate a ChildGroup object to this object
through the ChildGroup foreign key attribute.

@param  ChildGroup $l ChildGroup
@return $this|\gossi\trixionary\model\Sport The current object (for fluent API support)
Method called to associate a ChildGroup object to this object through the ChildGroup foreign key attribute .