src/model/Base/Skill.php
public function removeSkillRelatedByPartId(ChildSkill $skillRelatedByPartId)
    {
        if ($this->getSkillsRelatedByPartId()->contains($skillRelatedByPartId)) { $skillPart = new ChildSkillPart();

            $skillPart->setSkillRelatedByPartId($skillRelatedByPartId);
            if ($skillRelatedByPartId->isSkillRelatedByCompositeIdsLoaded()) {
                //remove the back reference if available
                $skillRelatedByPartId->getSkillRelatedByCompositeIds()->removeObject($this);
            }

            $skillPart->setSkillRelatedByCompositeId($this);
            $this->removeComposite(clone $skillPart);
            $skillPart->clear();

            $this->collSkillsRelatedByPartId->remove($this->collSkillsRelatedByPartId->search($skillRelatedByPartId));

            if (null === $this->skillsRelatedByPartIdScheduledForDeletion) {
                $this->skillsRelatedByPartIdScheduledForDeletion = clone $this->collSkillsRelatedByPartId;
                $this->skillsRelatedByPartIdScheduledForDeletion->clear();
            }

            $this->skillsRelatedByPartIdScheduledForDeletion->push($skillRelatedByPartId);
        }


        return $this;
    }
public function removeSkillRelatedByPartId(ChildSkill $skillRelatedByPartId)
    {
        if ($this->getSkillsRelatedByPartId()->contains($skillRelatedByPartId)) { $skillPart = new ChildSkillPart();

            $skillPart->setSkillRelatedByPartId($skillRelatedByPartId);
            if ($skillRelatedByPartId->isSkillRelatedByCompositeIdsLoaded()) {
                //remove the back reference if available
                $skillRelatedByPartId->getSkillRelatedByCompositeIds()->removeObject($this);
            }

            $skillPart->setSkillRelatedByCompositeId($this);
            $this->removeComposite(clone $skillPart);
            $skillPart->clear();

            $this->collSkillsRelatedByPartId->remove($this->collSkillsRelatedByPartId->search($skillRelatedByPartId));

            if (null === $this->skillsRelatedByPartIdScheduledForDeletion) {
                $this->skillsRelatedByPartIdScheduledForDeletion = clone $this->collSkillsRelatedByPartId;
                $this->skillsRelatedByPartIdScheduledForDeletion->clear();
            }

            $this->skillsRelatedByPartIdScheduledForDeletion->push($skillRelatedByPartId);
        }


        return $this;
    }
public function removeSkillRelatedByPartId ( ChildSkill $ skillRelatedByPartId ) { if ( $ this -> getSkillsRelatedByPartId ( ) -> contains ( $ skillRelatedByPartId ) ) { $ skillPart = new ChildSkillPart ( ) ; $ skillPart -> setSkillRelatedByPartId ( $ skillRelatedByPartId ) ; if ( $ skillRelatedByPartId -> isSkillRelatedByCompositeIdsLoaded ( ) ) { //remove the back reference if available $ skillRelatedByPartId -> getSkillRelatedByCompositeIds ( ) -> removeObject ( $ this ) ; } $ skillPart -> setSkillRelatedByCompositeId ( $ this ) ; $ this -> removeComposite ( clone $ skillPart ) ; $ skillPart -> clear ( ) ; $ this -> collSkillsRelatedByPartId -> remove ( $ this -> collSkillsRelatedByPartId -> search ( $ skillRelatedByPartId ) ) ; if ( null === $ this -> skillsRelatedByPartIdScheduledForDeletion ) { $ this -> skillsRelatedByPartIdScheduledForDeletion = clone $ this -> collSkillsRelatedByPartId ; $ this -> skillsRelatedByPartIdScheduledForDeletion -> clear ( ) ; } $ this -> skillsRelatedByPartIdScheduledForDeletion -> push ( $ skillRelatedByPartId ) ; } return $ this ; }
Remove skillRelatedByPartId of this object
through the kk_trixionary_skill_part cross reference table.

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