public function getDealerFolderVersions($criteria = null, ConnectionInterface $con = null)
    {
        $partial = $this->collDealerFolderVersionsPartial && !$this->isNew();
        if (null === $this->collDealerFolderVersions || null !== $criteria  || $partial) {
            if ($this->isNew() && null === $this->collDealerFolderVersions) {
                // return empty collection
                $this->initDealerFolderVersions();
            } else {
                $collDealerFolderVersions = ChildDealerFolderVersionQuery::create(null, $criteria)
                    ->filterByDealerFolder($this)
                    ->find($con);

                if (null !== $criteria) {
                    if (false !== $this->collDealerFolderVersionsPartial && count($collDealerFolderVersions)) {
                        $this->initDealerFolderVersions(false);

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

                        $this->collDealerFolderVersionsPartial = true;
                    }

                    reset($collDealerFolderVersions);

                    return $collDealerFolderVersions;
                }

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

                $this->collDealerFolderVersions = $collDealerFolderVersions;
                $this->collDealerFolderVersionsPartial = false;
            }
        }

        return $this->collDealerFolderVersions;
    }