public function getSkillVersions(Criteria $criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collSkillVersionsPartial && !$this->isNew();
        if (null === $this->collSkillVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collSkillVersions) {
                // return empty collection
                $this->initSkillVersions();
            } else {
                $collSkillVersions = ChildSkillVersionQuery::create(null, $criteria)
                    ->filterBySkill($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collSkillVersionsPartial && count($collSkillVersions)) {
                        $this->initSkillVersions(false);

                        foreach ($collSkillVersions as $obj) {
                            if (false == $this->collSkillVersions->contains($obj)) {
                                $this->collSkillVersions->append($obj);
                            }
                        }

                        $this->collSkillVersionsPartial = true;
                    }

                    return $collSkillVersions;
                }

                if ($partial && $this->collSkillVersions) {
                    foreach ($this->collSkillVersions as $obj) {
                        if ($obj->isNew()) {
                            $collSkillVersions[] = $obj;
                        }
                    }
                }

                $this->collSkillVersions = $collSkillVersions;
                $this->collSkillVersionsPartial = false;
            }
        }

        return $this->collSkillVersions;
    }