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