/** * Exclude object from result * * @param ChildVariationType $variationType Object to remove from the list of results * * @return $this|ChildVariationTypeQuery The current query, for fluid interface */ public function prune($variationType = null) { if ($variationType) { $this->addUsingAlias(VariationTypeTableMap::COL_VARIATION_TYPE_ID, $variationType->getVariationTypeId(), Criteria::NOT_EQUAL); } return $this; }
/** * Declares an association between this object and a ChildVariationType object. * * @param ChildVariationType $v * @return $this|\App\Propel\VariationTypeI18n The current object (for fluent API support) * @throws PropelException */ public function setVariationType(ChildVariationType $v = null) { if ($v === null) { $this->setVariationTypeId(NULL); } else { $this->setVariationTypeId($v->getVariationTypeId()); } $this->aVariationType = $v; // Add binding for other direction of this n:n relationship. // If this object has already been added to the ChildVariationType object, it will not be re-added. if ($v !== null) { $v->addVariationTypeI18n($this); } return $this; }
/** * Filter the query by a related \App\Propel\VariationType object * * @param \App\Propel\VariationType|ObjectCollection $variationType 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 ChildVariationTypeI18nQuery The current query, for fluid interface */ public function filterByVariationType($variationType, $comparison = null) { if ($variationType instanceof \App\Propel\VariationType) { return $this->addUsingAlias(VariationTypeI18nTableMap::COL_VARIATION_TYPE_ID, $variationType->getVariationTypeId(), $comparison); } elseif ($variationType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(VariationTypeI18nTableMap::COL_VARIATION_TYPE_ID, $variationType->toKeyValue('PrimaryKey', 'VariationTypeId'), $comparison); } else { throw new PropelException('filterByVariationType() only accepts arguments of type \\App\\Propel\\VariationType or Collection'); } }