Ejemplo n.º 1
0
 /**
  * Filter the query by a related \App\Propel\ConfigCategory object
  *
  * @param \App\Propel\ConfigCategory|ObjectCollection $configCategory 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 ChildConfigCategoryI18nQuery The current query, for fluid interface
  */
 public function filterByConfigCategory($configCategory, $comparison = null)
 {
     if ($configCategory instanceof \App\Propel\ConfigCategory) {
         return $this->addUsingAlias(ConfigCategoryI18nTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->getConfigCategoryId(), $comparison);
     } elseif ($configCategory instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ConfigCategoryI18nTableMap::COL_CONFIG_CATEGORY_ID, $configCategory->toKeyValue('PrimaryKey', 'ConfigCategoryId'), $comparison);
     } else {
         throw new PropelException('filterByConfigCategory() only accepts arguments of type \\App\\Propel\\ConfigCategory or Collection');
     }
 }
Ejemplo n.º 2
0
 /**
  * Filter the query by a related \App\Propel\ConfigCategoryI18n object
  *
  * @param \App\Propel\ConfigCategoryI18n|ObjectCollection $configCategoryI18n the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildConfigCategoryQuery The current query, for fluid interface
  */
 public function filterByConfigCategoryI18n($configCategoryI18n, $comparison = null)
 {
     if ($configCategoryI18n instanceof \App\Propel\ConfigCategoryI18n) {
         return $this->addUsingAlias(ConfigCategoryTableMap::COL_CONFIG_CATEGORY_ID, $configCategoryI18n->getConfigCategoryId(), $comparison);
     } elseif ($configCategoryI18n instanceof ObjectCollection) {
         return $this->useConfigCategoryI18nQuery()->filterByPrimaryKeys($configCategoryI18n->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByConfigCategoryI18n() only accepts arguments of type \\App\\Propel\\ConfigCategoryI18n or Collection');
     }
 }