Exclude object from result

@param   ChildCustomerGroupI18n $customerGroupI18n Object to remove from the list of results

@return ChildCustomerGroupI18nQuery The current query, for fluid interface
327362
public function prune($customerGroupI18n = null)
    {
        if ($customerGroupI18n) {
            $this->addCond('pruneCond0', $this->getAliasedColName(CustomerGroupI18nTableMap::ID), $customerGroupI18n->getId(), Criteria::NOT_EQUAL);
            $this->addCond('pruneCond1', $this->getAliasedColName(CustomerGroupI18nTableMap::LOCALE), $customerGroupI18n->getLocale(), Criteria::NOT_EQUAL);
            $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
        }

        return $this;
    }
387967
public function getFor(Customer $customer, $subscriptionId, array $parameters = [])
    {
        $this->parentId = $customer->id;

        return parent::rest_read($subscriptionId, $parameters);
    }
91961
public function deleteByCustomerId($customerId)
    {
        $connection = $this->getConnection();
        $connection->delete($this->getMainTable(), $connection->quoteInto('customer_id = ?', $customerId));
    }
510349
public function removeChildrenEntity(Entity $childrenEntity)
    {
        foreach ($this->childrenEntities as $key => $childrenEntityElement) {
            if ($childrenEntityElement === $childrenEntity) {
                unset($this->childrenEntities[$key]);
                break;
            }
        }

        return $this;
    }
1244033
public function countAttributeTypeI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collAttributeTypeI18nsPartial && !$this->isNew();
        if (null === $this->collAttributeTypeI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collAttributeTypeI18ns) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getAttributeTypeI18ns());
            }

            $query = ChildAttributeTypeI18nQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByAttributeType($this)
                ->count($con);
        }

        return count($this->collAttributeTypeI18ns);
    }
363666
public function getTranslation($locale = 'en_US', ConnectionInterface $con = null)
    {
        if (!isset($this->currentTranslations[$locale])) {
            if (null !== $this->collCustomerGroupI18ns) {
                foreach ($this->collCustomerGroupI18ns as $translation) {
                    if ($translation->getLocale() == $locale) {
                        $this->currentTranslations[$locale] = $translation;

                        return $translation;
                    }
                }
            }
            if ($this->isNew()) {
                $translation = new ChildCustomerGroupI18n();
                $translation->setLocale($locale);
            } else {
                $translation = ChildCustomerGroupI18nQuery::create()
                    ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale))
                    ->findOneOrCreate($con);
                $this->currentTranslations[$locale] = $translation;
            }
            $this->addCustomerGroupI18n($translation);
        }

        return $this->currentTranslations[$locale];
    }
687419
public function getCustomer($customerId)
    {
        //retrieve customer, set customer attributes
        $customerModel = $this->customerResource->get($customerId);
        if ($customerModel instanceof \Exception) {
            throw $customerModel;
        }

        $this->_setAttributes($customerModel);
        $this->setDeletable(true);

        return $this;
    }
416685
public function getProductListCollectionByIdCustomerId(
        CustomerTransfer $customerTransfer
    ): ProductListCollectionTransfer {
        $customerTransfer->requireIdCustomer();

        return $this->productListCustomerRepository
            ->getProductListCollectionByIdCustomer($customerTransfer->getIdCustomer());
    }
1009964
public function countPersonI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collPersonI18nsPartial && !$this->isNew();
        if (null === $this->collPersonI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collPersonI18ns) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getPersonI18ns());
            }

            $query = ChildPersonI18nQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByPerson($this)
                ->count($con);
        }

        return count($this->collPersonI18ns);
    }
238356
protected static function deleteCustomerByIdAsyncWithHttpInfo($customer_id) 
    {
        $returnType = '';  
        $request = self::deleteCustomerByIdRequest($customer_id); 

        return self::getHttpClient()
            ->sendAsync($request, self::createHttpClientOption())
            ->then(
                function ($response) use ($returnType) {
                    return [null, $response->getStatusCode(), $response->getHeaders()];
                },
                function ($exception) {
                    $response = $exception->getResponse();
                    $statusCode = $response->getStatusCode();
                    throw new ApiException(
                        sprintf(
                            '[%d] Error connecting to the API (%s)',
                            $statusCode,
                            $exception->getRequest()->getUri()
                        ),
                        $statusCode,
                        $response->getHeaders(),
                        $response->getBody()
                    );
                }
            );
    }
839880
public function countTeamI18ns(Criteria $criteria = null, $distinct = false, ConnectionInterface $con = null)
    {
        $partial = $this->collTeamI18nsPartial && !$this->isNew();
        if (null === $this->collTeamI18ns || null !== $criteria || $partial) {
            if ($this->isNew() && null === $this->collTeamI18ns) {
                return 0;
            }

            if ($partial && !$criteria) {
                return count($this->getTeamI18ns());
            }

            $query = ChildTeamI18nQuery::create(null, $criteria);
            if ($distinct) {
                $query->distinct();
            }

            return $query
                ->filterByTeam($this)
                ->count($con);
        }

        return count($this->collTeamI18ns);
    }
91195
public function getSmartyFilter(ConnectionInterface $con = null)
    {
        if ($this->aSmartyFilter === null && ($this->id !== null)) {
            $this->aSmartyFilter = ChildSmartyFilterQuery::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->aSmartyFilter->addSmartyFilterI18ns($this);
             */
        }

        return $this->aSmartyFilter;
    }
64567
public function prune($userCustomerRelation = null)
    {
        if ($userCustomerRelation) {
            $this->addUsingAlias(UserCustomerRelationPeer::ID, $userCustomerRelation->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
340160
public function getNextSibling(ConnectionInterface $con = null)
    {
        return ChildCategoryQuery::create()
            ->filterByTreeLeft($this->getRightValue() + 1)
            ->findOne($con);
    }
519845
public function prune($personI18n = null)
    {
        if ($personI18n) {
            $this->addCond('pruneCond0', $this->getAliasedColName(PersonI18nTableMap::ID), $personI18n->getId(), Criteria::NOT_EQUAL);
            $this->addCond('pruneCond1', $this->getAliasedColName(PersonI18nTableMap::LOCALE), $personI18n->getLocale(), Criteria::NOT_EQUAL);
            $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
        }

        return $this;
    }
793787
public function getTranslation($locale = 'en_US', ConnectionInterface $con = null)
    {
        if (!isset($this->currentTranslations[$locale])) {
            if (null !== $this->collFeatureTypeI18ns) {
                foreach ($this->collFeatureTypeI18ns as $translation) {
                    if ($translation->getLocale() == $locale) {
                        $this->currentTranslations[$locale] = $translation;

                        return $translation;
                    }
                }
            }
            if ($this->isNew()) {
                $translation = new ChildFeatureTypeI18n();
                $translation->setLocale($locale);
            } else {
                $translation = ChildFeatureTypeI18nQuery::create()
                    ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale))
                    ->findOneOrCreate($con);
                $this->currentTranslations[$locale] = $translation;
            }
            $this->addFeatureTypeI18n($translation);
        }

        return $this->currentTranslations[$locale];
    }
922821
public function getCustomerGroup(ConnectionInterface $con = null)
    {
        if ($this->aCustomerGroup === null && ($this->id !== null)) {
            $this->aCustomerGroup = ChildCustomerGroupQuery::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->aCustomerGroup->addCustomerGroupI18ns($this);
             */
        }

        return $this->aCustomerGroup;
    }