Exclude object from result

@param ChildAtosCurrency $atosCurrency Object to remove from the list of results

@return ChildAtosCurrencyQuery The current query, for fluid interface
545703
public function prune($atosCurrency = null)
    {
        if ($atosCurrency) {
            $this->addUsingAlias(AtosCurrencyTableMap::CODE, $atosCurrency->getCode(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
335410
public function prune($maprating = null)
    {
        if ($maprating) {
            $this->addUsingAlias(MapratingTableMap::COL_ID, $maprating->getId(), Criteria::NOT_EQUAL);
        }

        return $this;
    }
772411
public function removeArtFromAct()
    {
        $aChosenArt = $this->_getActionIds('oxactions2article.oxid');
        $sOxid = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('oxid');

        $this->_getOxRssFeed()->removeCacheFile($sOxid);

        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('all')) {
            $sQ = parent::_addFilter("delete oxactions2article.* " . $this->_getQuery());
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($sQ);
        } elseif (is_array($aChosenArt)) {
            $sChosenArticles = implode(", ", \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quoteArray($aChosenArt));
            $sQ = "delete from oxactions2article where oxactions2article.oxid in (" . $sChosenArticles . ") ";
            \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->Execute($sQ);
        }
    }
806607
public function setAllowedCurrencies($currencies)
    {
        if (empty($currencies)) {
            $currencies = [];
        } elseif (is_string($currencies)) {
            $currencies = [
                $currencies => $currencies
            ];
        } elseif (!is_array($currencies)) {
            throw new InvalidArgumentException("Invalid currency list");
        } elseif (!ArrayLib::is_associative($currencies)) {
            $currencies = array_combine($currencies, $currencies);
        }

        $this->allowedCurrencies = $currencies;

        // Rebuild currency field
        $this->buildCurrencyField();
        return $this;
    }
1200984
public function filter($key, $value = null)
    {
        $this->invalidateCachedResults();
        return $this->parentFilter($key, $value);
    }
795267
function removeThis( $remove_childs = false )
    {
        $db = eZDB::instance();
        $db->begin();
        if ( is_array( $remove_childs ) )
        {
            foreach( $remove_childs as $event )
            {
                $event->remove();
            }
        }
        else if ( $remove_childs )
        {
            eZPersistentObject::removeObject( eZWorkflowEvent::definition(),
                                              array( "workflow_id" => $this->ID,
                                                     "version" => $this->Version ) );
        }

        $this->remove();
        $db->commit();
    }
560591
public function removeReference(ChildReference $reference)
    {
        if ($this->getReferences()->contains($reference)) { $skillReference = new ChildSkillReference();

            $skillReference->setReference($reference);
            if ($reference->isSkillsLoaded()) {
                //remove the back reference if available
                $reference->getSkills()->removeObject($this);
            }

            $skillReference->setSkill($this);
            $this->removeSkillReference(clone $skillReference);
            $skillReference->clear();

            $this->collReferences->remove($this->collReferences->search($reference));

            if (null === $this->referencesScheduledForDeletion) {
                $this->referencesScheduledForDeletion = clone $this->collReferences;
                $this->referencesScheduledForDeletion->clear();
            }

            $this->referencesScheduledForDeletion->push($reference);
        }


        return $this;
    }
1224415
public function reduce(BankInterface $bank = null, $toCurrency = null)
    {
        if (null === $bank) {
            $bank = static::getBank();
        }

        if (!$bank instanceof MultiCurrencyBankInterface) {
            throw new \InvalidArgumentException('The supplied bank must implement MultiCurrencyBankInterface');
        }

        $rounder = $bank->getRounder();
        $amount = bcadd(
            $this->getAugend()->reduce($bank, $toCurrency)->getAmount(),
            $this->getAddend()->reduce($bank, $toCurrency)->getAmount(),
            $rounder->getPrecision() + 1
        );

        $amount = $rounder->round($amount, $toCurrency);

        return $bank->createMoney($amount, $toCurrency);
    }
693531
public function removeAttr($css, $attr = null)
    {
        if ($attr) {
            $attr = (array)preg_split('#[\s,]+#', $attr, -1, PREG_SPLIT_NO_EMPTY);
        }

        /**
         * @var \DOMElement $node
         */
        $query = $this->_document->getQuery();
        foreach ($this->_nodes as $node_0) {
            foreach ($query->css($css, $node_0) as $node) {
                foreach ($node->attributes as $attribute) {
                    if (!$attr || in_array($attribute->name, $attr, true)) {
                        $node->removeAttribute($attribute->name);
                    }
                }
            }
        }

        return $this;
    }
303618
public function removeTransaction( $transaction = self::TRANSACTION_LAST_USED, $throwExceptionIfNotFound = true )
    {

        // remove all transactions
        if( $transaction === self::TRANSACTIONS_ALL ) {
            $numTransactions = count( $this->queue );
            $this->queue = array();
            $this->lastTransaction = null;
            return $numTransactions;
        }

        // last created transaction
        if( $transaction === self::TRANSACTION_LAST_CREATED ) {
            $keys = array_keys( $this->queue );
            if( $transaction = array_pop( $keys ) ) {
                if( $this->lastTransaction === $transaction ) {
                    $this->lastTransaction = null;
                }
                unset( $this->queue[$transaction] );
                return 1;
            }
            return 0;
        }

        // last used
        if( $transaction === self::TRANSACTION_LAST_USED ) {
            if( $this->lastTransaction ) {
                unset( $this->queue[$this->lastTransaction] );
                $this->lastTransaction = null;
                return 0;
            }
            return 0;
        }

        // array of transactions
        if( is_array( $transaction ) ) {
            $output = 0;
            foreach( $transaction as $name ) {
                if( array_key_exists( $name, $this->queue ) ) {
                    if( $this->lastTransaction === $name ) {
                        $this->lastTransaction = null;
                    }
                    unset( $this->queue[$name] );
                    $output++;
                } elseif ( $throwExceptionIfNotFound ) {
                    throw new TransactionDoesNotExistException(
                        "Transaction with this name `{$name}` doesn't exist. Sorry."
                    );
                }
            }
            return $output;
        }

        if( is_scalar($transaction) ) {
            if( array_key_exists( $transaction, $this->queue ) ) {
                if( $this->lastTransaction === $transaction ) {
                    $this->lastTransaction = null;
                }
                unset( $this->queue[$name] );
                return 1;
            } elseif ( $throwExceptionIfNotFound ) {
                throw new TransactionDoesNotExistException(
                    "Transaction with this name `{$transaction}` doesn't exist. Sorry."
                );
            }
            return 0;
        }

        throw new \InvalidArgumentException(
            sprintf(
                "Not sure how to remove transaction `%s`",
                print_r( $transaction, true )
            )
        );

    }
693767
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceCurrency deleteCommerceCurrency(
		CommerceCurrency commerceCurrency) {
		return commerceCurrencyPersistence.remove(commerceCurrency);
	}
245543
public function excluding($excludes)
	{
		if($excludes === true)
		{
			$this->model->setIncludes([]);
		}
		else
		{
			$excludes = (array) $excludes;

			$includes = $this->model->getIncludes();

			foreach($excludes as $key => $relation)
			{
				if(is_string($relation) && isset($includes[$relation]))
				{
					unset($includes[$relation], $excludes[$key]); // Unset relations that may have been set with a criterion closure
				}
			}

			$this->model->setIncludes(array_udiff($includes, $excludes, function($a, $b)
			{
				return $a === $b ? 0 : -1;
			}));
		}

		return $this;
	}
1227772
function(fn, excludeThis) {
            var children = this.getChildren();
            if (!excludeThis) fn(this);
            for (var i = 0; i < children.length; i++) {
                children[i].preTraverse(fn);
            }
        }
709480
public function childrenAllowed(Authenticatable $user = null)
    {
        return $this->children()->filter(function ($item) use ($user) {
            return $item->isAllowed($user);
        });
    }
678005
public function removeChilds($pDbContainer = NULL)
    {
        if ($pDbContainer === NULL) {
            $containers = Agl::app()->getDb()->listCollections(array($this->getIdField()));
        } else {
            $containers = array($pDbContainer);
        }

        foreach ($containers as $container) {
            if ($container === $this->getDbContainer()) {
                continue;
            }

            $childs = $this->getChilds($container);
            foreach ($childs as $child) {
                $child->removeParent($this)->save();
            }
        }

        return $this;
    }
1194430
public function ban($timeseconds = null, $reason = null)
  {
    return $this->getParent()->clientBan($this->getId(), $timeseconds, $reason);
  }
668040
public function PaymentOrderCancel($paymentOrderId, $amount, $currency)
    {
        $request = new Request();
        $request->setMethod('POST');

        foreach (array('paymentOrderId', 'amount', 'currency') as $param) {
            if (null == $$param) {
                throw new InvalidArgumentException($param);
            }
        }

        $params = array(
            'PaymentOrderId' => $paymentOrderId,
            'CancelAmount'   => $amount,
            'Currency'       => $currency
        );

        $request->setContent(json_encode($params));

        return $this->doRequest('PaymentOrder/Cancel', $request)->getContentJson();
    }