Ejemplo n.º 1
0
 /**
  * Filter the query by a related \Thelia\Model\TaxRuleI18n object
  *
  * @param \Thelia\Model\TaxRuleI18n|ObjectCollection $taxRuleI18n  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildTaxRuleQuery The current query, for fluid interface
  */
 public function filterByTaxRuleI18n($taxRuleI18n, $comparison = null)
 {
     if ($taxRuleI18n instanceof \Thelia\Model\TaxRuleI18n) {
         return $this->addUsingAlias(TaxRuleTableMap::ID, $taxRuleI18n->getId(), $comparison);
     } elseif ($taxRuleI18n instanceof ObjectCollection) {
         return $this->useTaxRuleI18nQuery()->filterByPrimaryKeys($taxRuleI18n->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByTaxRuleI18n() only accepts arguments of type \\Thelia\\Model\\TaxRuleI18n or Collection');
     }
 }