Exclude object from result

@param   ChildDealerContactInfoVersion $dealerContactInfoVersion Object to remove from the list of results

@return ChildDealerContactInfoVersionQuery The current query, for fluid interface
776781
public function prune($dealerContactInfoVersion = null)
    {
        if ($dealerContactInfoVersion) {
            $this->addCond('pruneCond0', $this->getAliasedColName(DealerContactInfoVersionTableMap::ID), $dealerContactInfoVersion->getId(), Criteria::NOT_EQUAL);
            $this->addCond('pruneCond1', $this->getAliasedColName(DealerContactInfoVersionTableMap::VERSION), $dealerContactInfoVersion->getVersion(), Criteria::NOT_EQUAL);
            $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
        }

        return $this;
    }
1030955
public function setDealerContact(ChildDealerContact $v = null)
    {
        if ($v === null) {
            $this->setContactId(NULL);
        } else {
            $this->setContactId($v->getId());
        }

        $this->aDealerContact = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildDealerContact object, it will not be re-added.
        if ($v !== null) {
            $v->addDealerContactInfo($this);
        }


        return $this;
    }
885988
public function getLastVersions($number = 10, $criteria = null, $con = null)
    {
        $criteria = ChildDealerContactVersionQuery::create(null, $criteria);
        $criteria->addDescendingOrderByColumn(DealerContactVersionTableMap::VERSION);
        $criteria->limit($number);

        return $this->getDealerContactVersions($criteria, $con);
    }
365584
public function getPackageSelectQuery(PackageVersionEntity $packageVersion, LocaleEntity $locale, $excludeUntranslatedStrings = false)
    {
        $cn = $this->app->make(EntityManager::class)->getConnection();
        $queryPackageVersionID = (int) $packageVersion->getID();

        return $cn->executeQuery(
            $this->getBaseSelectString($locale, true, $excludeUntranslatedStrings) .
            "
                where
                    CommunityTranslationTranslatablePlaces.packageVersion = $queryPackageVersionID
                order by
                    CommunityTranslationTranslatablePlaces.sort
            "
        );
    }
1211901
function deleteStoredObjectAttribute( $contentObjectAttribute, $version = null )
    {
        $db = eZDB::instance();
        $paexID = $contentObjectAttribute->attribute( "contentobject_id" );

        $res = $db->arrayQuery( "SELECT COUNT(*) AS version_count FROM ezcontentobject_version WHERE contentobject_id = $paexID" );
        $versionCount = $res[0]['version_count'];

        if ( $version == null || $versionCount <= 1 )
        {
            eZPaEx::removePaex( $paexID );
        }
    }
975106
public function getDealerContact(ConnectionInterface $con = null)
    {
        if ($this->aDealerContact === null && ($this->id !== null)) {
            $this->aDealerContact = ChildDealerContactQuery::create()->findPk($this->id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aDealerContact->addDealerContactVersions($this);
             */
        }

        return $this->aDealerContact;
    }
968471
public function getLastVersions($number = 10, $criteria = null, $con = null)
    {
        $criteria = ChildDealerShedulesVersionQuery::create(null, $criteria);
        $criteria->addDescendingOrderByColumn(DealerShedulesVersionTableMap::VERSION);
        $criteria->limit($number);

        return $this->getDealerShedulesVersions($criteria, $con);
    }
547702
public function getOneVersion($versionNumber, $con = null)
    {
        return ChildSkillVersionQuery::create()
            ->filterBySkill($this)
            ->filterByVersion($versionNumber)
            ->findOne($con);
    }
1154658
public function getLastVersionNumber($con = null)
    {
        $v = ChildDealerContactVersionQuery::create()
            ->filterByDealerContact($this)
            ->orderByVersion('desc')
            ->findOne($con);
        if (!$v) {
            return 0;
        }

        return $v->getVersion();
    }
696512
public function getAllVersions($con = null)
    {
        $criteria = new Criteria();
        $criteria->addAscendingOrderByColumn(DealerContactVersionTableMap::VERSION);

        return $this->getDealerContactVersions($criteria, $con);
    }
1105369
public function isVersioningNecessary($con = null)
    {
        if ($this->alreadyInSave) {
            return false;
        }

        if ($this->enforceVersion) {
            return true;
        }

        if (ChildDealerContactQuery::isVersioningEnabled() && ($this->isNew() || $this->isModified()) || $this->isDeleted()) {
            return true;
        }
        if (null !== ($object = $this->getDealer($con)) && $object->isVersioningNecessary($con)) {
            return true;
        }

        // to avoid infinite loops, emulate in save
        $this->alreadyInSave = true;
        foreach ($this->getDealerContactInfos(null, $con) as $relatedObject) {
            if ($relatedObject->isVersioningNecessary($con)) {
                $this->alreadyInSave = false;

                return true;
            }
        }
        $this->alreadyInSave = false;


        return false;
    }
902763
public function getAllVersions($con = null)
    {
        $criteria = new Criteria();
        $criteria->addAscendingOrderByColumn(DealerContactInfoVersionTableMap::VERSION);

        return $this->getDealerContactInfoVersions($criteria, $con);
    }
88520
public function setDealerContactInfoVersions($v)
    {
        if ($this->dealer_contact_info_versions_unserialized !== $v) {
            $this->dealer_contact_info_versions_unserialized = $v;
            $this->dealer_contact_info_versions = '| ' . implode(' | ', $v) . ' |';
            $this->modifiedColumns[DealerContactVersionTableMap::DEALER_CONTACT_INFO_VERSIONS] = true;
        }


        return $this;
    }
787574
public function getDealerBrand(ConnectionInterface $con = null)
    {
        if ($this->aDealerBrand === null && ($this->id !== null)) {
            $this->aDealerBrand = ChildDealerBrandQuery::create()->findPk($this->id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aDealerBrand->addDealerBrandVersions($this);
             */
        }

        return $this->aDealerBrand;
    }
823023
public function getOneVersion($versionNumber, $con = null)
    {
        return ChildDealerBrandVersionQuery::create()
            ->filterByDealerBrand($this)
            ->filterByVersion($versionNumber)
            ->findOne($con);
    }
868089
public function doDeleteAll(ConnectionInterface $con = null)
    {
        if (null === $con) {
            $con = Propel::getServiceContainer()->getWriteConnection(DealerContactVersionTableMap::DATABASE_NAME);
        }
        $affectedRows = 0; // initialize var to track total num of affected rows
        try {
            // use transaction because $criteria could contain info
            // for more than one table or we could emulating ON DELETE CASCADE, etc.
            $con->beginTransaction();
            $affectedRows += parent::doDeleteAll($con);
            // Because this db requires some delete cascade/set null emulation, we have to
            // clear the cached instance *after* the emulation has happened (since
            // instances get re-added by the select statement contained therein).
            DealerContactVersionTableMap::clearInstancePool();
            DealerContactVersionTableMap::clearRelatedInstancePool();

            $con->commit();
        } catch (PropelException $e) {
            $con->rollBack();
            throw $e;
        }

        return $affectedRows;
    }
583865
public function addVersion($con = null)
    {
        $this->enforceVersion = false;

        $version = new ChildDealerVersion();
        $version->setId($this->getId());
        $version->setVisible($this->getVisible());
        $version->setAddress1($this->getAddress1());
        $version->setAddress2($this->getAddress2());
        $version->setAddress3($this->getAddress3());
        $version->setZipcode($this->getZipcode());
        $version->setCity($this->getCity());
        $version->setCountryId($this->getCountryId());
        $version->setLatitude($this->getLatitude());
        $version->setLongitude($this->getLongitude());
        $version->setCreatedAt($this->getCreatedAt());
        $version->setUpdatedAt($this->getUpdatedAt());
        $version->setVersion($this->getVersion());
        $version->setVersionCreatedAt($this->getVersionCreatedAt());
        $version->setVersionCreatedBy($this->getVersionCreatedBy());
        $version->setDealer($this);
        if ($relateds = $this->getDealerSheduless($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerShedulesIds(array_keys($relateds));
            $version->setDealerShedulesVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerContacts($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerContactIds(array_keys($relateds));
            $version->setDealerContactVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerContents($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerContentIds(array_keys($relateds));
            $version->setDealerContentVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerFolders($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerFolderIds(array_keys($relateds));
            $version->setDealerFolderVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerBrands($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerBrandIds(array_keys($relateds));
            $version->setDealerBrandVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerProducts($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerProductIds(array_keys($relateds));
            $version->setDealerProductVersions(array_values($relateds));
        }
        if ($relateds = $this->getDealerAdmins($con)->toKeyValue('Id', 'Version')) {
            $version->setDealerAdminIds(array_keys($relateds));
            $version->setDealerAdminVersions(array_values($relateds));
        }
        $version->save($con);

        return $version;
    }