/** * Exclude object from result * * @param ChildCreditAccount $creditAccount Object to remove from the list of results * * @return ChildCreditAccountQuery The current query, for fluid interface */ public function prune($creditAccount = null) { if ($creditAccount) { $this->addUsingAlias(CreditAccountTableMap::ID, $creditAccount->getId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildCreditAccount object. * * @param ChildCreditAccount $v * @return \CreditAccount\Model\CreditAmountHistory The current object (for fluent API support) * @throws PropelException */ public function setCreditAccount(ChildCreditAccount $v = null) { if ($v === null) { $this->setCreditAccountId(NULL); } else { $this->setCreditAccountId($v->getId()); } $this->aCreditAccount = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildCreditAccount object, it will not be re-added. if ($v !== null) { $v->addCreditAmountHistory($this); } return $this; }
/** * Filter the query by a related \CreditAccount\Model\CreditAccount object * * @param \CreditAccount\Model\CreditAccount|ObjectCollection $creditAccount The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildCreditAmountHistoryQuery The current query, for fluid interface */ public function filterByCreditAccount($creditAccount, $comparison = null) { if ($creditAccount instanceof \CreditAccount\Model\CreditAccount) { return $this->addUsingAlias(CreditAmountHistoryTableMap::CREDIT_ACCOUNT_ID, $creditAccount->getId(), $comparison); } elseif ($creditAccount instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(CreditAmountHistoryTableMap::CREDIT_ACCOUNT_ID, $creditAccount->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByCreditAccount() only accepts arguments of type \\CreditAccount\\Model\\CreditAccount or Collection'); } }