public function getIndexEngineIndexVersions($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collIndexEngineIndexVersionsPartial && !$this->isNew();
        if (null === $this->collIndexEngineIndexVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collIndexEngineIndexVersions) {
                // return empty collection
                $this->initIndexEngineIndexVersions();
            } else {
                $collIndexEngineIndexVersions = ChildIndexEngineIndexVersionQuery::create(null, $criteria)
                    ->filterByIndexEngineIndex($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collIndexEngineIndexVersionsPartial && count($collIndexEngineIndexVersions)) {
                        $this->initIndexEngineIndexVersions(false);

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

                        $this->collIndexEngineIndexVersionsPartial = true;
                    }

                    reset($collIndexEngineIndexVersions);

                    return $collIndexEngineIndexVersions;
                }

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

                $this->collIndexEngineIndexVersions = $collIndexEngineIndexVersions;
                $this->collIndexEngineIndexVersionsPartial = false;
            }
        }

        return $this->collIndexEngineIndexVersions;
    }