public function removeSkillRelatedByDependencyId(ChildSkill $skillRelatedByDependencyId)
    {
        if ($this->getSkillsRelatedByDependencyId()->contains($skillRelatedByDependencyId)) { $skillDependency = new ChildSkillDependency();

            $skillDependency->setSkillRelatedByDependencyId($skillRelatedByDependencyId);
            if ($skillRelatedByDependencyId->isSkillRelatedByParentIdsLoaded()) {
                //remove the back reference if available
                $skillRelatedByDependencyId->getSkillRelatedByParentIds()->removeObject($this);
            }

            $skillDependency->setSkillRelatedByParentId($this);
            $this->removeParent(clone $skillDependency);
            $skillDependency->clear();

            $this->collSkillsRelatedByDependencyId->remove($this->collSkillsRelatedByDependencyId->search($skillRelatedByDependencyId));

            if (null === $this->skillsRelatedByDependencyIdScheduledForDeletion) {
                $this->skillsRelatedByDependencyIdScheduledForDeletion = clone $this->collSkillsRelatedByDependencyId;
                $this->skillsRelatedByDependencyIdScheduledForDeletion->clear();
            }

            $this->skillsRelatedByDependencyIdScheduledForDeletion->push($skillRelatedByDependencyId);
        }


        return $this;
    }