/** * Exclude object from result * * @param ChildOrderProduct $orderProduct Object to remove from the list of results * * @return $this|ChildOrderProductQuery The current query, for fluid interface */ public function prune($orderProduct = null) { if ($orderProduct) { $this->addUsingAlias(OrderProductTableMap::COL_ORDER_PRODUCT_ID, $orderProduct->getOrderProductId(), Criteria::NOT_EQUAL); } return $this; }
/** * @param ChildOrderProduct $orderProduct The ChildOrderProduct object to add. */ protected function doAddOrderProduct(ChildOrderProduct $orderProduct) { $this->collOrderProducts[] = $orderProduct; $orderProduct->setProductVariation($this); }
/** * Filter the query by a related \App\Propel\OrderProduct object * * @param \App\Propel\OrderProduct|ObjectCollection $orderProduct the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildProductVariationQuery The current query, for fluid interface */ public function filterByOrderProduct($orderProduct, $comparison = null) { if ($orderProduct instanceof \App\Propel\OrderProduct) { return $this->addUsingAlias(ProductVariationTableMap::COL_PRODUCT_VARIATION_ID, $orderProduct->getProductVariationId(), $comparison); } elseif ($orderProduct instanceof ObjectCollection) { return $this->useOrderProductQuery()->filterByPrimaryKeys($orderProduct->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByOrderProduct() only accepts arguments of type \\App\\Propel\\OrderProduct or Collection'); } }