/** * Exclude object from result * * @param ChildPromotion $promotion Object to remove from the list of results * * @return $this|ChildPromotionQuery The current query, for fluid interface */ public function prune($promotion = null) { if ($promotion) { $this->addUsingAlias(PromotionTableMap::COL_PROMOTION_ID, $promotion->getPromotionId(), Criteria::NOT_EQUAL); } return $this; }