public function getDealerBrandVersions($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerBrandVersionsPartial && !$this->isNew();
        if (null === $this->collDealerBrandVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collDealerBrandVersions) {
                // return empty collection
                $this->initDealerBrandVersions();
            } else {
                $collDealerBrandVersions = ChildDealerBrandVersionQuery::create(null, $criteria)
                    ->filterByDealerBrand($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collDealerBrandVersionsPartial && count($collDealerBrandVersions)) {
                        $this->initDealerBrandVersions(false);

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

                        $this->collDealerBrandVersionsPartial = true;
                    }

                    reset($collDealerBrandVersions);

                    return $collDealerBrandVersions;
                }

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

                $this->collDealerBrandVersions = $collDealerBrandVersions;
                $this->collDealerBrandVersionsPartial = false;
            }
        }

        return $this->collDealerBrandVersions;
    }