src/model/Base/Skill.php
public function addGroup(ChildGroup $group)
    {
        if ($this->collGroups === null) {
            $this->initGroups();
        }

        if (!$this->getGroups()->contains($group)) {
            // only add it if the **same** object is not already associated
            $this->collGroups->push($group);
            $this->doAddGroup($group);
        }

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

        if (!$this->getGroups()->contains($group)) {
            // only add it if the **same** object is not already associated
            $this->collGroups->push($group);
            $this->doAddGroup($group);
        }

        return $this;
    }
public function addGroup ( ChildGroup $ group ) { if ( $ this -> collGroups === null ) { $ this -> initGroups ( ) ; } if ( ! $ this -> getGroups ( ) -> contains ( $ group ) ) { // only add it if the **same** object is not already associated $ this -> collGroups -> push ( $ group ) ; $ this -> doAddGroup ( $ group ) ; } return $ this ; }
Associate a ChildGroup to this object
through the kk_trixionary_skill_group cross reference table.

@param ChildGroup $group
@return ChildSkill The current object (for fluent API support)
Associate a ChildGroup to this object through the kk_trixionary_skill_group cross reference table .