Example #1
0
 /**
  * Filter the query by a related \Thelia\Model\TaxRuleCountry object
  *
  * @param \Thelia\Model\TaxRuleCountry|ObjectCollection $taxRuleCountry  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildStateQuery The current query, for fluid interface
  */
 public function filterByTaxRuleCountry($taxRuleCountry, $comparison = null)
 {
     if ($taxRuleCountry instanceof \Thelia\Model\TaxRuleCountry) {
         return $this->addUsingAlias(StateTableMap::ID, $taxRuleCountry->getStateId(), $comparison);
     } elseif ($taxRuleCountry instanceof ObjectCollection) {
         return $this->useTaxRuleCountryQuery()->filterByPrimaryKeys($taxRuleCountry->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByTaxRuleCountry() only accepts arguments of type \\Thelia\\Model\\TaxRuleCountry or Collection');
     }
 }