Пример #1
0
 /**
  * Filter the query by a related \Thelia\Model\ConfigI18n object
  *
  * @param \Thelia\Model\ConfigI18n|ObjectCollection $configI18n  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildConfigQuery The current query, for fluid interface
  */
 public function filterByConfigI18n($configI18n, $comparison = null)
 {
     if ($configI18n instanceof \Thelia\Model\ConfigI18n) {
         return $this->addUsingAlias(ConfigTableMap::ID, $configI18n->getId(), $comparison);
     } elseif ($configI18n instanceof ObjectCollection) {
         return $this->useConfigI18nQuery()->filterByPrimaryKeys($configI18n->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByConfigI18n() only accepts arguments of type \\Thelia\\Model\\ConfigI18n or Collection');
     }
 }