public function getDealerAdminVersions($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerAdminVersionsPartial && !$this->isNew();
        if (null === $this->collDealerAdminVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collDealerAdminVersions) {
                // return empty collection
                $this->initDealerAdminVersions();
            } else {
                $collDealerAdminVersions = ChildDealerAdminVersionQuery::create(null, $criteria)
                    ->filterByDealerAdmin($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collDealerAdminVersionsPartial && count($collDealerAdminVersions)) {
                        $this->initDealerAdminVersions(false);

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

                        $this->collDealerAdminVersionsPartial = true;
                    }

                    reset($collDealerAdminVersions);

                    return $collDealerAdminVersions;
                }

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

                $this->collDealerAdminVersions = $collDealerAdminVersions;
                $this->collDealerAdminVersionsPartial = false;
            }
        }

        return $this->collDealerAdminVersions;
    }