public function addSkill(ChildSkill $skill)
    {
        if ($this->collSkills === null) {
            $this->initSkills();
        }

        if (!$this->getSkills()->contains($skill)) {
            // only add it if the **same** object is not already associated
            $this->collSkills->push($skill);
            $this->doAddSkill($skill);
        }

        return $this;
    }
public function addSkill(ChildSkill $skill)
    {
        if ($this->collSkills === null) {
            $this->initSkills();
        }

        if (!$this->getSkills()->contains($skill)) {
            // only add it if the **same** object is not already associated
            $this->collSkills->push($skill);
            $this->doAddSkill($skill);
        }

        return $this;
    }
public function addSkill ( ChildSkill $ skill ) { if ( $ this -> collSkills === null ) { $ this -> initSkills ( ) ; } if ( ! $ this -> getSkills ( ) -> contains ( $ skill ) ) { // only add it if the **same** object is not already associated $ this -> collSkills -> push ( $ skill ) ; $ this -> doAddSkill ( $ skill ) ; } return $ this ; }
Associate a ChildSkill to this object
through the kk_trixionary_skill_group cross reference table.

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