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

            $skillPart->setSkillRelatedByCompositeId($skillRelatedByCompositeId);
            if ($skillRelatedByCompositeId->isSkillRelatedByPartIdsLoaded()) {
                //remove the back reference if available
                $skillRelatedByCompositeId->getSkillRelatedByPartIds()->removeObject($this);
            }

            $skillPart->setSkillRelatedByPartId($this);
            $this->removePart(clone $skillPart);
            $skillPart->clear();

            $this->collSkillsRelatedByCompositeId->remove($this->collSkillsRelatedByCompositeId->search($skillRelatedByCompositeId));

            if (null === $this->skillsRelatedByCompositeIdScheduledForDeletion) {
                $this->skillsRelatedByCompositeIdScheduledForDeletion = clone $this->collSkillsRelatedByCompositeId;
                $this->skillsRelatedByCompositeIdScheduledForDeletion->clear();
            }

            $this->skillsRelatedByCompositeIdScheduledForDeletion->push($skillRelatedByCompositeId);
        }


        return $this;
    }
public function removeSkillRelatedByCompositeId(ChildSkill $skillRelatedByCompositeId)
    {
        if ($this->getSkillsRelatedByCompositeId()->contains($skillRelatedByCompositeId)) { $skillPart = new ChildSkillPart();

            $skillPart->setSkillRelatedByCompositeId($skillRelatedByCompositeId);
            if ($skillRelatedByCompositeId->isSkillRelatedByPartIdsLoaded()) {
                //remove the back reference if available
                $skillRelatedByCompositeId->getSkillRelatedByPartIds()->removeObject($this);
            }

            $skillPart->setSkillRelatedByPartId($this);
            $this->removePart(clone $skillPart);
            $skillPart->clear();

            $this->collSkillsRelatedByCompositeId->remove($this->collSkillsRelatedByCompositeId->search($skillRelatedByCompositeId));

            if (null === $this->skillsRelatedByCompositeIdScheduledForDeletion) {
                $this->skillsRelatedByCompositeIdScheduledForDeletion = clone $this->collSkillsRelatedByCompositeId;
                $this->skillsRelatedByCompositeIdScheduledForDeletion->clear();
            }

            $this->skillsRelatedByCompositeIdScheduledForDeletion->push($skillRelatedByCompositeId);
        }


        return $this;
    }
public function removeSkillRelatedByCompositeId ( ChildSkill $ skillRelatedByCompositeId ) { if ( $ this -> getSkillsRelatedByCompositeId ( ) -> contains ( $ skillRelatedByCompositeId ) ) { $ skillPart = new ChildSkillPart ( ) ; $ skillPart -> setSkillRelatedByCompositeId ( $ skillRelatedByCompositeId ) ; if ( $ skillRelatedByCompositeId -> isSkillRelatedByPartIdsLoaded ( ) ) { //remove the back reference if available $ skillRelatedByCompositeId -> getSkillRelatedByPartIds ( ) -> removeObject ( $ this ) ; } $ skillPart -> setSkillRelatedByPartId ( $ this ) ; $ this -> removePart ( clone $ skillPart ) ; $ skillPart -> clear ( ) ; $ this -> collSkillsRelatedByCompositeId -> remove ( $ this -> collSkillsRelatedByCompositeId -> search ( $ skillRelatedByCompositeId ) ) ; if ( null === $ this -> skillsRelatedByCompositeIdScheduledForDeletion ) { $ this -> skillsRelatedByCompositeIdScheduledForDeletion = clone $ this -> collSkillsRelatedByCompositeId ; $ this -> skillsRelatedByCompositeIdScheduledForDeletion -> clear ( ) ; } $ this -> skillsRelatedByCompositeIdScheduledForDeletion -> push ( $ skillRelatedByCompositeId ) ; } return $ this ; }
Remove skillRelatedByCompositeId of this object
through the kk_trixionary_skill_part cross reference table.

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