/** * Exclude object from result * * @param ChildCreditPayment $creditPayment Object to remove from the list of results * * @return $this|ChildCreditPaymentQuery The current query, for fluid interface */ public function prune($creditPayment = null) { if ($creditPayment) { $this->addUsingAlias(CreditPaymentTableMap::COL_ID, $creditPayment->getId(), Criteria::NOT_EQUAL); } return $this; }