/** * Filter the query by a related \App\Propel\ProductVariationType object * * @param \App\Propel\ProductVariationType|ObjectCollection $productVariationType the related object to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @return ChildVariationTypeQuery The current query, for fluid interface */ public function filterByProductVariationType($productVariationType, $comparison = null) { if ($productVariationType instanceof \App\Propel\ProductVariationType) { return $this->addUsingAlias(VariationTypeTableMap::COL_VARIATION_TYPE_ID, $productVariationType->getVariationTypeId(), $comparison); } elseif ($productVariationType instanceof ObjectCollection) { return $this->useProductVariationTypeQuery()->filterByPrimaryKeys($productVariationType->getPrimaryKeys())->endUse(); } else { throw new PropelException('filterByProductVariationType() only accepts arguments of type \\App\\Propel\\ProductVariationType or Collection'); } }
/** * Clears the current object, sets all attributes to their default values and removes * outgoing references as well as back-references (from other objects to this one. Results probably in a database * change of those foreign objects when you call `save` there). */ public function clear() { if (null !== $this->aProductVariationType) { $this->aProductVariationType->removeProductVariation($this); } if (null !== $this->aVariation) { $this->aVariation->removeProductVariation($this); } $this->product_variation_id = null; $this->product_variation_type_id = null; $this->variation_id = null; $this->created_at = null; $this->updated_at = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildProductVariationType $productVariationType Object to remove from the list of results * * @return $this|ChildProductVariationTypeQuery The current query, for fluid interface */ public function prune($productVariationType = null) { if ($productVariationType) { $this->addUsingAlias(ProductVariationTypeTableMap::COL_PRODUCT_VARIATION_TYPE_ID, $productVariationType->getProductVariationTypeId(), Criteria::NOT_EQUAL); } return $this; }
/** * Filter the query by a related \App\Propel\ProductVariationType object * * @param \App\Propel\ProductVariationType|ObjectCollection $productVariationType The related object(s) to use as filter * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL * * @throws \Propel\Runtime\Exception\PropelException * * @return ChildProductVariationQuery The current query, for fluid interface */ public function filterByProductVariationType($productVariationType, $comparison = null) { if ($productVariationType instanceof \App\Propel\ProductVariationType) { return $this->addUsingAlias(ProductVariationTableMap::COL_PRODUCT_VARIATION_TYPE_ID, $productVariationType->getProductVariationTypeId(), $comparison); } elseif ($productVariationType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(ProductVariationTableMap::COL_PRODUCT_VARIATION_TYPE_ID, $productVariationType->toKeyValue('PrimaryKey', 'ProductVariationTypeId'), $comparison); } else { throw new PropelException('filterByProductVariationType() only accepts arguments of type \\App\\Propel\\ProductVariationType or Collection'); } }
/** * @param ChildProductVariationType $productVariationType The ChildProductVariationType object to add. */ protected function doAddProductVariationType(ChildProductVariationType $productVariationType) { $this->collProductVariationTypes[] = $productVariationType; $productVariationType->setVariationType($this); }