public function getDealerVersions($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerVersionsPartial && !$this->isNew();
        if (null === $this->collDealerVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collDealerVersions) {
                // return empty collection
                $this->initDealerVersions();
            } else {
                $collDealerVersions = ChildDealerVersionQuery::create(null, $criteria)
                    ->filterByDealer($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collDealerVersionsPartial && count($collDealerVersions)) {
                        $this->initDealerVersions(false);

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

                        $this->collDealerVersionsPartial = true;
                    }

                    reset($collDealerVersions);

                    return $collDealerVersions;
                }

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

                $this->collDealerVersions = $collDealerVersions;
                $this->collDealerVersionsPartial = false;
            }
        }

        return $this->collDealerVersions;
    }