src/model/Base/Skill.php
public function removeSkillRelatedByParentId(ChildSkill $skillRelatedByParentId)
    {
        if ($this->getSkillsRelatedByParentId()->contains($skillRelatedByParentId)) { $skillDependency = new ChildSkillDependency();

            $skillDependency->setSkillRelatedByParentId($skillRelatedByParentId);
            if ($skillRelatedByParentId->isSkillRelatedByDependencyIdsLoaded()) {
                //remove the back reference if available
                $skillRelatedByParentId->getSkillRelatedByDependencyIds()->removeObject($this);
            }

            $skillDependency->setSkillRelatedByDependencyId($this);
            $this->removeChild(clone $skillDependency);
            $skillDependency->clear();

            $this->collSkillsRelatedByParentId->remove($this->collSkillsRelatedByParentId->search($skillRelatedByParentId));

            if (null === $this->skillsRelatedByParentIdScheduledForDeletion) {
                $this->skillsRelatedByParentIdScheduledForDeletion = clone $this->collSkillsRelatedByParentId;
                $this->skillsRelatedByParentIdScheduledForDeletion->clear();
            }

            $this->skillsRelatedByParentIdScheduledForDeletion->push($skillRelatedByParentId);
        }


        return $this;
    }
public function removeSkillRelatedByParentId(ChildSkill $skillRelatedByParentId)
    {
        if ($this->getSkillsRelatedByParentId()->contains($skillRelatedByParentId)) { $skillDependency = new ChildSkillDependency();

            $skillDependency->setSkillRelatedByParentId($skillRelatedByParentId);
            if ($skillRelatedByParentId->isSkillRelatedByDependencyIdsLoaded()) {
                //remove the back reference if available
                $skillRelatedByParentId->getSkillRelatedByDependencyIds()->removeObject($this);
            }

            $skillDependency->setSkillRelatedByDependencyId($this);
            $this->removeChild(clone $skillDependency);
            $skillDependency->clear();

            $this->collSkillsRelatedByParentId->remove($this->collSkillsRelatedByParentId->search($skillRelatedByParentId));

            if (null === $this->skillsRelatedByParentIdScheduledForDeletion) {
                $this->skillsRelatedByParentIdScheduledForDeletion = clone $this->collSkillsRelatedByParentId;
                $this->skillsRelatedByParentIdScheduledForDeletion->clear();
            }

            $this->skillsRelatedByParentIdScheduledForDeletion->push($skillRelatedByParentId);
        }


        return $this;
    }
public function removeSkillRelatedByParentId ( ChildSkill $ skillRelatedByParentId ) { if ( $ this -> getSkillsRelatedByParentId ( ) -> contains ( $ skillRelatedByParentId ) ) { $ skillDependency = new ChildSkillDependency ( ) ; $ skillDependency -> setSkillRelatedByParentId ( $ skillRelatedByParentId ) ; if ( $ skillRelatedByParentId -> isSkillRelatedByDependencyIdsLoaded ( ) ) { //remove the back reference if available $ skillRelatedByParentId -> getSkillRelatedByDependencyIds ( ) -> removeObject ( $ this ) ; } $ skillDependency -> setSkillRelatedByDependencyId ( $ this ) ; $ this -> removeChild ( clone $ skillDependency ) ; $ skillDependency -> clear ( ) ; $ this -> collSkillsRelatedByParentId -> remove ( $ this -> collSkillsRelatedByParentId -> search ( $ skillRelatedByParentId ) ) ; if ( null === $ this -> skillsRelatedByParentIdScheduledForDeletion ) { $ this -> skillsRelatedByParentIdScheduledForDeletion = clone $ this -> collSkillsRelatedByParentId ; $ this -> skillsRelatedByParentIdScheduledForDeletion -> clear ( ) ; } $ this -> skillsRelatedByParentIdScheduledForDeletion -> push ( $ skillRelatedByParentId ) ; } return $ this ; }
Remove skillRelatedByParentId of this object
through the kk_trixionary_skill_dependency cross reference table.

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