src/model/Base/Skill.php
public function removeGroup(ChildGroup $group)
    {
        if ($this->getGroups()->contains($group)) { $skillGroup = new ChildSkillGroup();

            $skillGroup->setGroup($group);
            if ($group->isSkillsLoaded()) {
                //remove the back reference if available
                $group->getSkills()->removeObject($this);
            }

            $skillGroup->setSkill($this);
            $this->removeSkillGroup(clone $skillGroup);
            $skillGroup->clear();

            $this->collGroups->remove($this->collGroups->search($group));

            if (null === $this->groupsScheduledForDeletion) {
                $this->groupsScheduledForDeletion = clone $this->collGroups;
                $this->groupsScheduledForDeletion->clear();
            }

            $this->groupsScheduledForDeletion->push($group);
        }


        return $this;
    }
public function removeGroup(ChildGroup $group)
    {
        if ($this->getGroups()->contains($group)) { $skillGroup = new ChildSkillGroup();

            $skillGroup->setGroup($group);
            if ($group->isSkillsLoaded()) {
                //remove the back reference if available
                $group->getSkills()->removeObject($this);
            }

            $skillGroup->setSkill($this);
            $this->removeSkillGroup(clone $skillGroup);
            $skillGroup->clear();

            $this->collGroups->remove($this->collGroups->search($group));

            if (null === $this->groupsScheduledForDeletion) {
                $this->groupsScheduledForDeletion = clone $this->collGroups;
                $this->groupsScheduledForDeletion->clear();
            }

            $this->groupsScheduledForDeletion->push($group);
        }


        return $this;
    }
public function removeGroup ( ChildGroup $ group ) { if ( $ this -> getGroups ( ) -> contains ( $ group ) ) { $ skillGroup = new ChildSkillGroup ( ) ; $ skillGroup -> setGroup ( $ group ) ; if ( $ group -> isSkillsLoaded ( ) ) { //remove the back reference if available $ group -> getSkills ( ) -> removeObject ( $ this ) ; } $ skillGroup -> setSkill ( $ this ) ; $ this -> removeSkillGroup ( clone $ skillGroup ) ; $ skillGroup -> clear ( ) ; $ this -> collGroups -> remove ( $ this -> collGroups -> search ( $ group ) ) ; if ( null === $ this -> groupsScheduledForDeletion ) { $ this -> groupsScheduledForDeletion = clone $ this -> collGroups ; $ this -> groupsScheduledForDeletion -> clear ( ) ; } $ this -> groupsScheduledForDeletion -> push ( $ group ) ; } return $ this ; }
Remove group of this object
through the kk_trixionary_skill_group cross reference table.

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